From: Eriam S. <er...@er...> - 2007-04-13 08:22:30
|
Evan Read a écrit : > The wxperl window is completely unresponsive while this all runs. I > have put a "$mainWindow->Update()" which executes in each iteration of > while, hoping to allow control of the window, but that just makes the > screen repaint. So everything on the window is perfectly clear > (without the update, it just "blanks out"), but I can't bring the > window forward from the task bar, I can't move the window from the > title bar, I can't minimise the window etc etc etc etc. > > How can I make the window available for moving and accessing from > taskbar etc? It's like there is an invisible modal dialog box that > won't allow access to its parent. I have a log window which refreshes > ok. I have a progress box which runs earlier which I destroy (and > know exits cleanly - without the foreach/while loop above I get > control of the window back.) > > What can I do? Hello You can use threads or eventually setup your loops in a POE session. Depending on what you feel confortable with. There is a sample of threads and Wx on cpan (Wx::App::Mastermind) that Mattia wrote and there are samples of POE and Wx usage on cpan aswell written by Mike (in POE::Loop::Wx). Good luck and I kindly remind that the wxPerl IRC channel is still alive (on irc.perl.org) and that it's another place to get help and discuss wxPerl. Thank you. Eriam |