herby1620 has asked for the wisdom of the Perl Monks concerning the following question:
While this works OK, every time I attempt to execute the code (I'm using windoze), the windows pop up in different places (it is a cycle of about 10 different places). What causes this? Can I make it ALWAYS pop up the simple button (main window) in the SAME place. The book isn't that clear on positioning of the main window, thus the seeking of wisdom! Thanks.#!/usr/bin/perl -w use Tk; my $mw = MainWindow->new; $button = $mw->Button(-text => "Hello World!", -command =>sub{exit}); $button->configure(-width =>30); $button->pack; MainLoop;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Follow the window?
by serf (Chaplain) on Jan 18, 2006 at 05:19 UTC | |
Re: Follow the window?
by zentara (Cardinal) on Jan 18, 2006 at 14:24 UTC |