This works for me.
#!/usr/bin/perl # https://perlmonks.org/?node_id=1231953 use strict; use warnings; use Tk; my $mw = MainWindow->new; $mw->geometry( '+300+300' ); my $button = $mw->Button(-text => 'Test', -command => sub { print "B1 released\n" }, )->pack; $button->bind('<ButtonRelease-1>' => sub { print "bind release\n" } ); MainLoop;
In reply to Re: Tk : how to map ButtonRelease to left mouse button?
by tybalt89
in thread Tk : how to map ButtonRelease to left mouse button?
by Special_K
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |