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;
In reply to Follow the window? by herby1620
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |