Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Tk April Fools

by Anonymous Monk
on Apr 02, 2008 at 04:27 UTC ( #677884=note: print w/replies, xml ) Need Help??


in reply to Tk April Fools

To be propper, you need an exit button. You should bind it to mouse movement.

Replies are listed 'Best First'.
Re^2: Tk April Fools
by zentara (Archbishop) on Apr 02, 2008 at 13:40 UTC
    Well I wanted the Fool to try and chase the window with the mouse, trying to hit the Close icon. Binding exit to mouse movement would preclude that.

    Speaking of non-lameness, have you seen the best prank of the day, by the BBC? Check out this Flash.... Flying Penquins


    I'm not really a human, but I play one on earth. Cogito ergo sum a bum
      ier, bind the window movement to mouse movement, not on timer
        Yeah, I think I saw a Japh like that, where you couldn't get the mouse over the window without it jumping. Something like:
        #!/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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://677884]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2020-10-20 01:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (208 votes). Check out past polls.

    Notices?