skywalker has asked for the wisdom of the Perl Monks concerning the following question:
ie at the moment I can bind to an event (keyboard hit) with
however I would like to be able to achive the same result with a scalar;$mw -> bind('<Button-1>' => sub {print "actioned"});
or can I initiate a pesudo key press to get the same result.$mw -> bind($shared_scalar => sub {print "actioned"});
note: I have a GUI running a listbox with a shared array, which is processed by a thread, I need the GUI to update the display when the thread shifts a value from the array,
thanks
skywalker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk Bind scalar
by zentara (Cardinal) on Feb 20, 2009 at 19:01 UTC | |
|
Re: Tk Bind scalar
by jdporter (Paladin) on Feb 20, 2009 at 19:37 UTC | |
by skywalker (Beadle) on Feb 20, 2009 at 20:25 UTC | |
by jdporter (Paladin) on Feb 20, 2009 at 21:25 UTC | |
by zentara (Cardinal) on Feb 20, 2009 at 21:31 UTC | |
by jdporter (Paladin) on Feb 20, 2009 at 21:37 UTC | |
| |
by zentara (Cardinal) on Feb 20, 2009 at 21:20 UTC |