Threading, signal handlers & Blender GUI


(eeshlo) #1

Has anyone ever succesfully used the threading module or maybe signal.alarm(linux) while using a (Blender.BGL) GUI at the same time? The thread or signal function doesn’t work while the GUI is waiting for events, the script needs events like mouse movements or key presses for the other thread to run. Is there any way around it?
A timer function would have been nice. I know there is TIMER0 to 3 in the Blender.Draw event list, but a search I did on the net suggests that it is only used on IRIX machines (GL), maybe it even doesn’t have a function at all in Blender. Anybody know?