in reply to Re^3: Tk April Fools
in thread Tk April Fools
Yeah, I think I saw a Japh like that, where you couldn't get the mouse over
the window without it jumping. Something like:
I'm not really a human, but I play one on earth. Cogito ergo sum a bum
#!/usr/bin/perl use strict; use Tk; my $mw = new MainWindow(); $mw->geometry("100x100+100+100"); my $label1 = $mw->Label(-text => "Catch Me Fool", -bg => 'cyan')-> pack(-fill => 'both', -expand => 1,); #put stuff here $mw->bind("<Enter>",sub { my $x = int rand 600; my $y = int rand 600; $mw->geometry("+$x+$y"); }); MainLoop;
I'm not really a human, but I play one on earth. Cogito ergo sum a bum
In Section
Code Catacombs