From: Warren D. <wa...@de...> - 2009-03-09 18:19:22
|
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:bra...@ag...] Sent: Monday, March 09, 2009 11:15 AM To: pym...@li... 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 |