FW: multi-threaded WxPerl GUI

2011-06-24 Thread Steve Cookson
> We'd like to use threads in one of our Linux GTK Wx GUI's. The > purpose of the thread is to check some text files for changes > every 2 > seconds. Hi Mike, I use Wx::Timer, which is wonderful and doesn't degrade performance. I use it to update status of controls during media playing (

Re: multi-threaded WxPerl GUI

2011-06-24 Thread Mark Dootson
Hi, There is some documentation in the Wx distribution http://search.cpan.org/~mdootson/Wx-0.9901/lib/Wx/Thread.pod Basically, you only get to access the gui in your main thread. None of the wxWidgets synchronisation methods are wrapped - because they simply don't fit with Perl's threading mo

multi-threaded WxPerl GUI

2011-06-23 Thread mike
Hello, We'd like to use threads in one of our Linux GTK Wx GUI's. The purpose of the thread is to check some text files for changes every 2 seconds. The changes need to be written back to a WxTextCtrl. I tried using Wx::MutexGUIEnter and Wx::MutexGuiLeave to block the main thread from