Problems deleting widget toolbar in namespace
We are experiencing some trouble whilst trying to delete a widget that
belongs to namespace, or so it seems. Further details are as follows:
We use toolbar.tcl which is a pretty standar thing.
We create new toolbarFrame's.
We do drag and drop among the different toolbarFrame's
But...
When we try to drag and drop a toolbar to its original frame, as we did
a pack forget before the previous drag and drop we get the expected
"This frame already exists here" error.
So we try the following (for instance)
# check that frame exists
winfo exists .main.toolbarFrame_0.tb_tbHelp
1
# destroy it
destroy .main.toolbarFrame_0.tb_tbHelp
And we get...
unknown namespace "::.main.toolbarFrame_0.tb_tbHelp" in namespace
delete command
while executing
"namespace delete ::$this"
(procedure "::Toolbar::~Toolbar" line 3)
invoked from within
"::Toolbar::~Toolbar .main.toolbarFrame_0.tb_tbHelp"
(command bound to event)
Any ideas on why this is happening or how we could do our drag and drop
business without using the failed pack forget strategy?
Thanks in advance !!!
jima
|