in reply to Is Tk::Text-widget PopUp-menu onscreen?
#!/usr/bin/perl use warnings; use strict; use Tk; my $mw = MainWindow->new(); my $Text = $mw->Text()->pack; my $TextMenu = $Text->menu(); $TextMenu->bind("<Enter>",sub {print "1\n" }); $TextMenu->bind("<Leave>",sub {print "0\n" }); MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is Tk::Text-widget PopUp-menu onscreen?
by ldln (Pilgrim) on Aug 14, 2005 at 14:05 UTC |