in reply to Re^2: Perk Tk - how to send a value from a subroutine back to the main program using Button
in thread Perk Tk - how to send a value from a subroutine back to the main program using Button
sub MainLoop { unless ($inMainLoop) { local $inMainLoop = 1; while (Tk::MainWindow->Count) { DoOneEvent(0); } } }
You move the mouse, its an event (a bunch)
You click a button, its an event
Nothing happens for a few miliseconds, its an event
If you use Tk::Wizard then each page you add, each wizard step, is like a separate MainLoop, and then returning a value can be possible (you can write procedural code), see the examples
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perk Tk - how to send a value from a subroutine back to the main program using Button
by jeri_rl (Initiate) on Jun 11, 2013 at 18:13 UTC |