[Chimera-users] chimera extensions & dialog location

Eric Pettersen 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. :-(

--Eric

                        Eric Pettersen
                        UCSF Computer Graphics Lab
                        http://www.cgl.ucsf.edu


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20150706/67f2beee/attachment.html>


More information about the Chimera-users mailing list