#!/usr/bin/perl use warnings; use strict; use Tk; my $mw = new MainWindow; my $ent = $mw -> Entry() -> pack(); $ent->focus; $ent->bind('<Control-a>', \&clear ); $ent->bind('<Delete>', \&clear ); MainLoop; sub clear { $ent->delete(0,'end'); }
In reply to Re: Using Ctrl A and del in the Entry widget in perl tk
by zentara
in thread Using Ctrl A and del in the Entry widget in perl tk
by priyaviswam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |