Forum: Poser Python Scripting


Subject: more on: Running multiple Tkinter scripts.

tromnek opened this issue on Jan 21, 2005 ยท 12 posts


tromnek posted Mon, 24 January 2005 at 7:49 PM

Looks like I'm going to have to newter Tkinter.Tk() also. Maybe add to
def ChangeToNewt():

<br></br>      Tkinter.IGotBetterTk = Tkinter.Tk<br></br>      def ChangeToNewtTk():<br></br>        return Tkinter.Toplevel()<br></br><br></br>      Tkinter.Tk = ChangeToNewtTk<br></br>

and add to def IGotBetter():

<br></br>      Tkinter.Tk = IGotBetterTk<br></br>

But now the script that does this must run before any other scripts. Like a 'Protecter of the Realm' script.
KingArthur = NewtMainLoop( Tkinter.Tk() )
It will also need to schedule time for poser.ProcessSomeEvents(),
KingArthur.Update()

It seems to work, but I spoke too soon before. I'll test some more when I get a chance thursday.