Sunday, May 25, 2008

HOWTO Get a Perl Tk Widget to Behave

All my other X-Windows behave okay on my multiple monitor system - if you do the double-click on the title bar, they'll only take up one monitor. Not the hello world widget I get with this :

use Tk;
my $mw = MainWindow->new;
$mw->title("Hello World");
$mw->Button("-text" => "Done", -command => sub { exit })->pack;
MainLoop;

Anyone know what's missing?