Ace128 has asked for the wisdom of the Perl Monks concerning the following question:
Now, I thought that these two sessions would start as a seperate "thread", but apparently not, since the first one is never shown (the first session is a Tk based GUI). Yes, apparently, there needs to be some $session->postback set else the session will end anyway... (compared to Mainloop) (Why? And how to fix this btw (If I dont wanna set any postbacks...)?)POE::Session->create ( inline_states => { _start => \&startApplication, searchmode => \&searchMode, } ); POE::Session->create ( inline_states => { _start => \&searchUpdate, } ); $poe_kernel->run(); # Relevant is also: sub startApplication { $poe_main_window->Toplevel(-title => "Search"); .... jadajadajada .... } sub searchUpdate { while(1) { next if (!$INTERESTING); ! DO ALOT ! } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: POE, Tk, Simultaneous problem!
by thundergnat (Deacon) on Sep 28, 2005 at 17:11 UTC | |
by Ace128 (Hermit) on Sep 28, 2005 at 21:21 UTC | |
|
Re: POE, Tk, Simultaneous problem!
by GrandFather (Saint) on Sep 28, 2005 at 04:51 UTC | |
by Ace128 (Hermit) on Sep 28, 2005 at 06:03 UTC | |
by GrandFather (Saint) on Sep 28, 2005 at 06:09 UTC | |
by Ace128 (Hermit) on Sep 28, 2005 at 11:52 UTC | |
|
Re: POE, Tk, Simultaneous problem!
by Anonymous Monk on Sep 28, 2005 at 07:01 UTC | |
by Ace128 (Hermit) on Sep 28, 2005 at 11:48 UTC | |
|
Re: POE, Tk, Simultaneous problem!
by zentara (Cardinal) on Sep 28, 2005 at 10:56 UTC | |
by Ace128 (Hermit) on Sep 28, 2005 at 13:21 UTC | |
|
Re: POE, Tk, Simultaneous problem!
by Anonymous Monk on Sep 28, 2005 at 07:09 UTC | |
|
Re: POE, Tk, Simultaneous problem!
by rcaputo (Chaplain) on Sep 29, 2005 at 03:56 UTC |