tamaguchi has asked for the wisdom of the Perl Monks concerning the following question:
Do you know how to to do to bind two keys to the same event? So that I forexample have to press Crtl+A for the event to happen. I also wonder if you know were to find a complete list of keysyms. Thank you for any help.#!/usr/bin/perl use warnings; use strict; use Tk; my $mw = Tk::MainWindow->new( -title => "TEST"); $mw->bind( '<KeyPress-a>', [sub {print "Button a has been pressed\n"}] + ); $mw->bind( '<KeyRelease-a>', [sub {print "Button a has been released\n +"}] ); MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk: Binding Keys to events
by liverpole (Monsignor) on Oct 01, 2006 at 01:10 UTC | |
by tamaguchi (Pilgrim) on Oct 03, 2006 at 10:43 UTC | |
by liverpole (Monsignor) on Oct 03, 2006 at 11:04 UTC | |
by tamaguchi (Pilgrim) on Oct 03, 2006 at 15:46 UTC | |
by rcseege (Pilgrim) on Oct 04, 2006 at 00:05 UTC | |
by liverpole (Monsignor) on Oct 03, 2006 at 16:32 UTC | |
|
Re: Tk: Binding Keys to events
by Hue-Bond (Priest) on Sep 30, 2006 at 22:32 UTC | |
|
Re: Tk: Binding Keys to events
by runrig (Abbot) on Sep 30, 2006 at 22:37 UTC |