[Chimera-users] chimera extensions & dialog location
pett at cgl.ucsf.edu
Mon Jul 6 12:34:39 PDT 2015
On Jul 2, 2015, at 6:11 PM, "Dougherty, Matthew T" <matthewd at 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. :-(
UCSF Computer Graphics Lab
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Chimera-users