Perl Monk, Perl Meditation | |
PerlMonks |
Re: Re: Tk click/doubleclickby baku (Scribe) |
on Feb 05, 2001 at 20:14 UTC ( [id://56416]=note: print w/replies, xml ) | Need Help?? |
(me again... logged in now :-) ) For the record/from the CB: the input device in use actually has 4 (buttons?): left single, left double, Rx1, Rx2; so there will be a fixed double-click timeout. Since this is for Win32, something of the nature of a main loop timer or Tk timeout like the above (probably invalid/nasty) pseudocode might be The Right Thing... The Tk functions you need seem to be $timeout = Tk->after (time, \&sub); and Tk->after(cancel=>$timeout); which I found in libwww-perl archives. Hope this helps!
In Section
Seekers of Perl Wisdom
|
|