in reply to perl tk button on windows 8 touchpad does not animate if touched as expected
I have no Tablet, but just shooting the breeze, how about manually changing the button's state in the -command callback?
For a simple example:
#!/usr/bin/perl use strict; use Tk; my $mw = MainWindow->new; my $but; # declare before so you can use it in the callback $but = $mw->Button(-text => "Hello World", ## This callback works (text is changed) under Win95, Win98 (5.6.1) # # -command => [sub { my $b = $_[0], #notice comma # $b->configure(-text => "Hello Stranger"); # }, $b]); #This callback works under Win95, Win98 (5.6.1) and Linux (5.6.0) -command=>[\&change, $but]); $but->pack; MainLoop; sub change { my $but = $_[0], #notice comma $but->configure(-text=>"Hello Stranger", -bg => 'pink'); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl tk button on windows 8 touchpad is doesn't not animate if touched
by abonvici (Initiate) on May 07, 2014 at 19:29 UTC | |
by Anonymous Monk on May 08, 2014 at 06:57 UTC | |
by zentara (Cardinal) on May 08, 2014 at 13:44 UTC |