Bradley,
PyMOL's mainloop runs in a separate thread from Tkinter, so you can't call it directly from PyMOL scripts. See modules/pmg_tk/startup/__init__.py inside the PyMOL installation for an example code snippet for writing your own Tkinter plugin for PyMOL (which install or run upon startup). Cheers, Warren ________________________________ From: Bradley Hintze [mailto:[email protected]] Sent: Monday, March 09, 2009 11:15 AM To: [email protected] Subject: [PyMOL] Tk and scripting I am writing a script for PyMol and noticed you that PyMol freezes when you try to bring up your own Tkinter windows. Is there a way to get around this so I can get my Tk window up? -- Bradley J. Hintze Biochemistry Undergraduate Utah State University 801-712-8799
