Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Perl/Tkx Mousewheel

by chiron (Novice)
on Mar 10, 2009 at 14:50 UTC ( [id://749617]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl/Tkx Mousewheel
in thread Perl/Tkx Mousewheel

Using:
$canvas->g_bind("<MouseWheel>", [ sub { my $wert = -($_[1]/120); $wert = '+' . $wert unless $wert =~ /^-/; print $wert . "\n"; }, Tkx::Ev('D') ]);
just gives me '-0' all the time

Replies are listed 'Best First'.
Re^3: Perl/Tkx Mousewheel
by Crian (Curate) on Mar 10, 2009 at 15:09 UTC

    Note: I use Tk::Ev not Tkx::Ev. I don't know, but it might be a difference.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-06-19 03:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.