in reply to Re^2: Tk: Binding Keys to events
in thread Tk: Binding Keys to events
#!/usr/bin/perl -w + use Tk; + use strict; use warnings; + my $mw = new MainWindow(); $mw->bind( '<KeyPress-Control-a>', sub {print "Button a has been press +ed\n"} ); $mw->bind( '<KeyPress-Control-a>', sub {print "Button a has been relea +sed\n"} ); MainLoop; # Produces ... bad event type or keysym "Control" at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Tk/Derived.pm l +ine 469. # My version of Perl This is perl, v5.8.0 built for i386-linux-thread-multi
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Tk: Binding Keys to events
by tamaguchi (Pilgrim) on Oct 03, 2006 at 15:46 UTC | |
by rcseege (Pilgrim) on Oct 04, 2006 at 00:05 UTC | |
|
Re^4: Tk: Binding Keys to events
by liverpole (Monsignor) on Oct 03, 2006 at 16:32 UTC |