Note that for ButtonPress events, everything works fine. I have tried the Tk::bind method directly too.#!/usr/bin/perl -w use strict; use Tk; my $mw = 'MainWindow'->new(); my $cv = $mw->Canvas()->pack(); $cv->Tk::bind( '<KeyPress-a>', sub { print "Ounch!\n" } ); MainLoop();
In reply to Perl/Tk CanvasBind question by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |