Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Adding items to default Text widget <button-3> menus?

by Khen1950fx (Canon)
on Jan 20, 2011 at 21:05 UTC ( [id://883405]=note: print w/replies, xml ) Need Help??


in reply to Adding items to default Text widget <button-3> menus?

FYI, bindtags is simple enough. First, look at the doumentation for Tk::bindtags. Then try this script. It bindtags and shows that the tags were indeed bound.
#!/usr/bin/perl use strict; use warnings; use Tk; use Tk::Text; my $top = MainWindow->new(); my $txt = $top->Text->pack(-expand => 1, -fill => 'both' ); $txt->bindtags([<Button-2>, <ButtonRelease-2>]); if (my @tags = $txt->bindtags) { foreach my $tag(@tags) { print $tag, "\n"; } } MainLoop;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://883405]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (8)
As of 2024-04-19 14:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found