
1) How can I reload an extension when chimera is running? At the present, after I modify python code I restart chimera for the s/w changes to take effect. Is there a way through idle, etc, that I can cause user code modifications to load without restarting chimera? 2) How can I position the location of IDLE using python? I have IDLE on autostart. In a user extension I have a button, when pressed it organizes the various dialogs, placing them in specific locations. When I try to do something with IDLE, running dialogs.activeDialogs() does not show IDLE in the list. Matthew Dougherty National Center for Macromolecular Imaging Baylor College of Medicine ===========================================================================

On Jul 2, 2015, at 6:11 PM, "Dougherty, Matthew T" <matthewd@bcm.edu> wrote:
2) How can I position the location of IDLE using python?
I have IDLE on autostart. In a user extension I have a button, when pressed it organizes the various dialogs, placing them in specific locations. When I try to do something with IDLE, running dialogs.activeDialogs() does not show IDLE in the list.
Yeah, IDLE uses it's own window that isn't a "Chimera dialog" per se, so it doesn't show up in that list. If you're desperate, starting IDLE calls start_shell() in IDLE/__init__.py. Tracing that code along reveals that IDLE.flist.pyshell is the IDLE PyShell instance (or None). From there I guess you could keep going into the idlelib module to try to figure out how to get PyShell to do what your want. It doesn't seem worth it. :-( --Eric Eric Pettersen UCSF Computer Graphics Lab http://www.cgl.ucsf.edu
participants (2)
-
Dougherty, Matthew T
-
Eric Pettersen