There's more than one way to do things | |
PerlMonks |
Re^2: Tk MainWindow and another TopLevel spawn order (taskbar order LIFO win32)by Discipulus (Canon) |
on Sep 21, 2016 at 08:47 UTC ( [id://1172288]=note: print w/replies, xml ) | Need Help?? |
Weird way to write code :) yes I'm here to learn a better way! ;=) Many thanks and ++put_your_name_here for the hint about LIFO order, good to know but i'm curious to know where you found this information or if just comes from your tries. Anyway I prefere the pryrt's solution because your using tkinit is in reality creating two distinct indipendent MainWindows: they appear in LIFO order but if you close one of them the other continue to exist. How can i retrieve more infos about tkinit anyway? in the Tk source I just see:
It is just a shortcut to call for a MainWindow creation? L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|