in reply to Re^2: Tk::Button: How do I trigger a callback when button is pressed (as opposed to released)?
in thread Tk::Button: How do I trigger a callback when button is pressed (as opposed to released)?
See Perl documentation documentation, Searching Perl Documentation, How to Read Perldocs
[ddg://site:perlmonks.org Tk Button bind], [tk bind button] site:perlmonks.org Tk Button bind, tk bind button -> How can I un-bind a button in Perl Tk
$ perldoc -l -m Tk C:\citrusperl\vendor\lib\Tk.pm $ ack -hi ">bind.*button" C:\citrusperl\vendor\lib\Tk |tail $mw->bind($class,'<Control-ButtonRelease-1>','Control_ButtonRelease_1 +'); $mw->bind($class,'<ButtonRelease-1>','ButtonRelease_1'); $mw->bind($class,'<B1-Motion>',[ 'Button1Motion' ] ); $mw->bind($class,'<Double-ButtonPress-1>',['Double1']); $mw->bind($class,'<Control-ButtonPress-1>',['CtrlButton1']); $mw->bind($class,'<Control-Double-ButtonPress-1>',['CtrlButton1']); $e->bind('<ButtonRelease-1>' => sub { $e->bind('<ButtonRelease-1>' => undef); $mw->bind($class,'<Button-6>', ['xview','scroll',-1,'units']); $mw->bind($class,'<Button-7>', ['xview','scroll',1,'units']);
$ which -a widget C:/citrusperl/vendor/bin/widget C:/citrusperl/vendor/bin/widget.BAT $ head C:/citrusperl/vendor/bin/widget #!/usr/bin/perl use 5.008; use Config; use Tk 804.000; use lib Tk->findINC( 'demos/widget_lib' ); use Tk::widgets qw/ DialogBox ErrorDialog LabEntry ROText /; use Tk::Config (); use WidgetDemo; use subs qw/
perl Tk help, RFC: Learning Perl/Tk, Perl/Tk: For Beginners, Re^3: Tkx Search for dialog box for text input , Re: TclTk interface with Perl code, is it possible? , Re^2: GUI toolkit+designer for the perl newbie , Re: Easier GUI, Re: Should I use Perl/TK?, Re^2: need a popup gui stdin, Tk Tree Tutorial ( http://www.rtapo.com/tutorials/tk_tree.html ), some Tkx tutorial links, Tutorial http://theoryx5.uwinnipeg.ca/perltk/ and http://www.perl.com/pub/1999/10/perltk/, http://perltk.org/, http://web.archive.org/web/20100310202528/http://theoryx5.uwinnipeg.ca/perltk/
Leverage all available resources :)
|
---|