[fxruby-users] FXText update within threads

Lars Kanis lars at greiz-reinsdorf.de
Wed Feb 15 14:31:56 EST 2012


Hi watobo,

> You're not allowed to interact with the GUI from threads.   You need to put any GUI function calls inside of a timeout handler so that they execute in the main thread.

That's right, fxruby isn't thread safe. You could use a Queue object
to collect blocks with the GUI calls and execute them from a timeout
method.

--
Regards,
Lars


More information about the fxruby-users mailing list