in reply to Re: Tk preventing a char in Entry widged to trigger a KeyBinding
in thread Tk preventing a char in Entry widged to trigger a KeyBinding
#!/usr/bin/perl use warnings; use strict; use Tk; my $mw = MainWindow->new->geometry("100x100+799+336"); my $entry = $mw->Entry( -text => '', -width => 20 )->pack(); $entry->bind('<KeyRelease-question>' => sub { Tk->break }); $mw->bind( '<KeyRelease-question>' => sub { print "? was pressed!\n" + }); $mw->Entry->pack; MainLoop();
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Tk preventing a char in Entry widged to trigger a KeyBinding
by Discipulus (Canon) on Oct 12, 2016 at 07:38 UTC | |
by Anonymous Monk on Oct 12, 2016 at 08:02 UTC | |
by Discipulus (Canon) on Oct 12, 2016 at 08:46 UTC | |
|
Re^3: Tk preventing a char in Entry widged to trigger a KeyBinding
by tybalt89 (Monsignor) on Oct 11, 2016 at 22:25 UTC |