Forum: Poser Python Scripting


Subject: running two scripts (with tkinter GUI) at the same time

tromnek opened this issue on Dec 04, 2004 ยท 10 posts


tromnek posted Tue, 07 December 2004 at 7:23 AM

hmmm.
I have a script that listens on a network socket for a connection from an external application. The external application sends filepath names to the script. If the filepath is a poser library file or a python script, it loads (library file) or executes (python script) it.
Since this script will be running all the time, I want to be able to load any other script while it's running (either sent over the network socket, or manually run in poser by the user).
I don't really need tkinter for my 'listening' script. I'd rather had used 'threading' (but it seems broken in poser).
I don't want to use the poser 'SetEventCallBack()' because it calls back excessively and it doesn't call back until I get back to poser from an external application.