XP is just a number | |
PerlMonks |
Re^3: Tk how-to?by liverpole (Monsignor) |
on Dec 04, 2005 at 17:22 UTC ( [id://513971]=note: print w/replies, xml ) | Need Help?? |
Greetings BrowserUk!
I just recently came across the infamous Canvas bind problem again. According to Mastering Perl/Tk (published by O'Reilly), you need to use a different bind method with a Canvas object, called CanvasBind. (This is described in chapter 9.4, and it's because a Canvas object has its own bind method). Here's an example program I created to demonstrate. When you resize the main window (and thus the Canvas object), it draws random squares as a result of the change in size and/or position (the event for which is a "<Configure>"):
@ARGV=split//,"/:L"; map{print substr crypt($_,ord pop),2,3}qw"PerlyouC READPIPE provides"
In Section
Seekers of Perl Wisdom
|
|