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


duckmango posted Mon, 06 December 2004 at 12:17 PM

It's just speculation, but perhaps Poser's Python interpreter is passing the WM_Delete_Window Message to both scripts, causing one to crash unexpectedly. There was a recent thread here (http://www.renderosity.com/messages.ez?ForumID=12390&Form.ShowMessage=1986945) about the lack of thread support in PoserPython, so perhaps that's related.

In regards to a workaround, can you combine the gui's into one script, perhaps using the Toplevel widget to house your second script? Toplevel works just like Frame, but creates a separate "toplevel" window where you can load other widgets into it, etc.

Then, after setting up your separate gui's, you can use just one repeater function to do your housekeeping, heavy lifting, etc. Just a thought...Good luck.

Message edited on: 12/06/2004 12:18