On Sep 2, 2009, at 6:13 , Michael Carman wrote:

Having created a fork of Tkx to play with, I'm starting to experiment
with duplicating some of the functionality that Perl/Tk has in Tk::mega.
The first item on my list is support for class initialization. The
Tk::mega documentation says that

   ClassInit is called once for each MainWindow just before the
   first widget instance of a class is created in the widget tree
   of MainWindow.

As Perl/Tk supports multiple mainwindows, ClassInit could be called more
than once.

You can make multiple 'toplevel' widgets. As far I know they behave in the same way as the MainWindow. You might also consider just 'wm withdraw' the MainWindow and only doeal with toplevels you manage yourself. This make sure that none of them are more "main" than the others.

--Gisle

Reply via email to