[wxruby-users] wxRuby dialog separate from main Ruby script execution

Alex Fenton alex at pressure.to
Sat Jan 17 03:48:11 EST 2009


David Muir wrote:
> I had some success yesterday so thought I should complete this thread by 
> showing how I got it working.
>   

Thanks for sharing this.


> Seems to work fairly well with the few examples I've tried.  If the Ruby 
> script kicks off an external app the UI will be unresponsive.
>   

The trick is to call Wx::app.yield or Wx::safe_yield (the latter in SVN 
only), while an external task is running, to tell Wx to process events 
and update the UI

alex



More information about the wxruby-users mailing list