Hello out there,
lest my previous posting concerning gridplus leave the impression that
the examples may have a problem: they don't.
I have the habit of including a line like
foreach w [winfo children .] {catch {destroy $w}}
somewhere in the beginning in every Tcl file which creates a GUI - it
allows me to [source] the same file over and over in TkCon.
Now tablelist (which is loaded by gridplus) creates internal helper
widget(s), which I unknowingly destroyed immediately by the statement
above, which later lead to the error that I reported.
Helmut - 'twas not my best day - Giese
Helmut,
You probably already know - but just in case:-
The supported way to clear widgets (and do other essential
housekeeping) for a GRIDPLUS created GUI is to use...
gridplus clear .
...or, for a toplevel...
gridplus clear .mywindow
...you should then be able to source the file again.
Best Regards,
=Adrian=
BTW, maybe you could add
package require gridplus
namespace import gridplus::*
to all examples?
This would allow to run them "out of the box". Right now they have to
be manually modified - and who knows which errors unknowing users
might introduce by doing so :(
Thanks for a great, time saving package and best regards
Helmut Giese
Helmut,
I'll make a note in the documentation for the examples. The package
require/import is "built in" to the supplied Startkit - So it is not
required when using this.
Thanks for the suggestion.
Best Regards,
=Adrian=