Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Gridplus 2.3: The examples are fine ...

3 views
Skip to first unread message

Helmut Giese

unread,
Oct 12, 2008, 2:35:48 PM10/12/08
to
... the error was sitting in front of the monitor.

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

Adrian Davis

unread,
Oct 16, 2008, 4:21:24 AM10/16/08
to
> 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.

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=

Helmut Giese

unread,
Oct 16, 2008, 9:18:17 AM10/16/08
to
Hi Adrian,

>You probably already know - but just in case:-
no, I didn't know - thanks for pointing it out.

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

Adrian Davis

unread,
Oct 16, 2008, 11:22:29 AM10/16/08
to

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=

0 new messages