[chimera-dev] Model panel rename

Dougherty, Matthew T matthewd at bcm.edu
Wed Oct 14 12:27:57 PDT 2015


thanks.  the python did not like the double quotes.  had to change.


To make it stranger I did this to keep the code for later purposes

# mp.uiMaster().winfo_toplevel().geometry("+x+y")


The extension aborted, had to switch the double quotes to single regardless it was a comment.

also noticed they were " " quotes as opposed to " "


similar questions on the model panel buttons

'note',

'show only',

'select',

'hide',



Matthew Dougherty
National Center for Macromolecular Imaging
Baylor College of Medicine
=================================================
=================================================


________________________________
From: Eric Pettersen <pett at cgl.ucsf.edu>
Sent: Wednesday, October 14, 2015 1:31 PM
To: Dougherty, Matthew T
Cc: chimera-dev at cgl.ucsf.edu
Subject: Re: [chimera-dev] Model panel rename

I guess I should add that the craziness only happens during the initial placement.  So for dialogs that persist even when hidden/closed (like the model panel) showing them again will bring them back wherever they last were.  May or may not matter to you.

-Eric

On Oct 14, 2015, at 11:18 AM, Eric Pettersen <pett at cgl.ucsf.edu<mailto:pett at cgl.ucsf.edu>> wrote:


On Oct 13, 2015, at 4:19 PM, Dougherty, Matthew T <matthewd at bcm.edu<mailto:matthewd at bcm.edu>> wrote:

When the dialog box comes up, is there a way I can place it in a specific location?

The shortest answer is no, not reliably.  Chimera does some crazy stuff to get the "tile placement" of its dialogs to (mostly) work.  In particular, there's a bunch of timed waits to try to get accurate final size information for the dialog before it finally gets moved to its tiled position.  So, after a second or so, you might be able to move the model panel so that it's upper left corner is at pixel position x,y (with the origin at the upper left of the screen) with:

mp.uiMaster().winfo_toplevel().geometry("+x+y")

-Eric

Eric Pettersen
UCSF Computer Graphics Lab
_______________________________________________
Chimera-dev mailing list
Chimera-dev at cgl.ucsf.edu<mailto:Chimera-dev at cgl.ucsf.edu>
http://www.rbvi.ucsf.edu/mailman/listinfo/chimera-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20151014/42699b83/attachment.html>


More information about the Chimera-dev mailing list