in reply to Re: POE, Tk, Simultaneous problem!
in thread POE, Tk, Simultaneous problem!
That is,use warnings; use strict; use Tk; use POE; my $killAll = 0; POE::Session->create (inline_states => {_start => \&startApplication, searchmode => \&sea +rchMode}); POE::Session->create (inline_states => {_start => \&searchUpdate}); POE::Kernel->run(); # Relevant is also: sub startApplication { $poe_main_window->Toplevel(-title => "Search"); $killAll = 1; } sub searchUpdate { while (! $killAll) { sleep 1; print '.'; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: POE, Tk, Simultaneous problem!
by GrandFather (Saint) on Sep 28, 2005 at 06:09 UTC | |
by Ace128 (Hermit) on Sep 28, 2005 at 11:52 UTC |