<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>thanks. the python did not like the double quotes. had to change. </p>
<p><br>
</p>
<p>To make it stranger I did this to keep the code for later purposes</p>
<p><span style="font-size: 12pt;"># </span><span style="font-size: 12pt;">mp.uiMaster().winfo_toplevel().geometry(“+x+y”)</span><br>
</p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><span style="font-size: 12pt;">The extension aborted, had to switch the double quotes to single regardless it was a comment.</span></p>
<p><span style="font-size: 12pt;">also noticed they were </span><span style="font-size: 12pt;">“ ” quotes as opposed to " "</span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><span style="font-size: 12pt;">similar questions on the model panel buttons</span></p>
<p>'note', </p>
<p>'show only',</p>
<p>'select',</p>
<p>'hide',</p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<div class="BodyFragment"><font size="2">
<div class="PlainText">Matthew Dougherty<br>
National Center for Macromolecular Imaging<br>
Baylor College of Medicine<br>
<span style="font-size:13.0pt; font-family:Calibri">=================================================</span><br>
</div>
<div class="PlainText"><span style="font-size:13pt; font-family:Calibri">=================================================</span><span style="font-size:13.0pt; font-family:Calibri"><br>
</span></div>
</font></div>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Eric Pettersen <pett@cgl.ucsf.edu><br>
<b>Sent:</b> Wednesday, October 14, 2015 1:31 PM<br>
<b>To:</b> Dougherty, Matthew T<br>
<b>Cc:</b> chimera-dev@cgl.ucsf.edu<br>
<b>Subject:</b> Re: [chimera-dev] Model panel rename</font>
<div> </div>
</div>
<div>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.
<div class=""><br class="">
</div>
<div class="">—Eric</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Oct 14, 2015, at 11:18 AM, Eric Pettersen <<a href="mailto:pett@cgl.ucsf.edu" class="">pett@cgl.ucsf.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="" style="word-wrap:break-word"><br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Oct 13, 2015, at 4:19 PM, Dougherty, Matthew T <<a href="mailto:matthewd@bcm.edu" class="">matthewd@bcm.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="" style="margin-top:0px; margin-bottom:0px; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; background-color:rgb(255,255,255)">
When the dialog box comes up, is there a way I can place it in a specific location?</div>
</div>
</blockquote>
<br class="">
</div>
<div class="">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:</div>
<div class=""><br class="">
</div>
<div class="">mp.uiMaster().winfo_toplevel().geometry(“+x+y”)</div>
<div class=""><br class="">
</div>
<div class="">—Eric</div>
<div class=""><br class="">
</div>
<div class="">
<div class="" style="word-wrap:break-word">
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>Eric Pettersen</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>UCSF Computer Graphics Lab</div>
</div>
</div>
</div>
_______________________________________________<br class="">
Chimera-dev mailing list<br class="">
<a href="mailto:Chimera-dev@cgl.ucsf.edu" class="">Chimera-dev@cgl.ucsf.edu</a><br class="">
http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
</body>
</html>