<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>solved</p>
<p><br>
</p>
<p> >> ‘display’<br>
</p>
<p><br>
</p>
<p>having the problem when I comment out the line of code is what makes this quote problem weird. </p>
<p><br>
</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 3:09 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>Yeah, my mail app must have changed the should-have-been-identical double quotes to a starting double quote and an ending double quote. Since the quotes don’t match, the entire remainder of the file becomes part of the “string” and Python complains about
never finding the end quote.
<div class=""><br class="">
</div>
<div class="">Anyway, about the buttons, ‘note’ and ‘select’ are <i class="">very</i> analogous to ‘rename’, just instead of renameCmd use noteCmd and selectCmd respectively. ‘show only’ and ‘hide’ are only slightly different:</div>
<div class=""><br class="">
</div>
<div class=""># ‘show only'</div>
<div class="">from ModelPanel import setModelFieldOnly</div>
<div class="">setModelFieldOnly(mp.selected(moleculesOnly=False, groupsOkay=True), ‘display’)</div>
<div class=""><br class="">
</div>
<div class="">
<div class=""># ‘hide'</div>
<div class="">from ModelPanel import setModelField</div>
<div class="">setModelField(mp.selected(moleculesOnly=False, groupsOkay=True), ‘display’, False)</div>
<div class=""><br class="">
</div>
<div class="">—Eric</div>
<div class=""><br class="">
</div>
<div>
<blockquote type="cite" class="">
<div class="">On Oct 14, 2015, at 12:27 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 id="divtagdefaultwrapper" class="" style="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; font-size:12pt; background-color:rgb(255,255,255); font-family:Calibri,Arial,Helvetica,sans-serif">
<div class="" style="margin-top:0px; margin-bottom:0px">thanks. the python did not like the double quotes. had to change. </div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">To make it stranger I did this to keep the code for later purposes</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><span class="" style="font-size:12pt"># </span><span class="" style="font-size:12pt">mp.uiMaster().winfo_toplevel().geometry(“+x+y”)</span><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><span class="" style="font-size:12pt"><br class="">
</span></div>
<div class="" style="margin-top:0px; margin-bottom:0px"><span class="" style="font-size:12pt">The extension aborted, had to switch the double quotes to single regardless it was a comment.</span></div>
<div class="" style="margin-top:0px; margin-bottom:0px"><span class="" style="font-size:12pt">also noticed they were </span><span class="" style="font-size:12pt">“ ” quotes as opposed to " "</span></div>
<div class="" style="margin-top:0px; margin-bottom:0px"><span class="" style="font-size:12pt"><br class="">
</span></div>
<div class="" style="margin-top:0px; margin-bottom:0px"><span class="" style="font-size:12pt">similar questions on the model panel buttons</span></div>
<div class="" style="margin-top:0px; margin-bottom:0px">'note', </div>
<div class="" style="margin-top:0px; margin-bottom:0px">'show only',</div>
<div class="" style="margin-top:0px; margin-bottom:0px">'select',</div>
<div class="" style="margin-top:0px; margin-bottom:0px">'hide',</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><span class="" style="font-size:12pt"><br class="">
</span></div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div id="Signature" class="">
<div id="divtagdefaultwrapper" class="" style="font-size:12pt; background-color:rgb(255,255,255); font-family:Calibri,Arial,Helvetica,sans-serif">
<div class="BodyFragment"><font size="2" class="">
<div class="PlainText">Matthew Dougherty<br class="">
National Center for Macromolecular Imaging<br class="">
Baylor College of Medicine<br class="">
<span class="" style="font-size:13pt; font-family:Calibri">=================================================</span><br class="">
</div>
<div class="PlainText"><span class="" style="font-size:13pt; font-family:Calibri">=================================================</span><span class="" style="font-size:13pt; font-family:Calibri"><br class="">
</span></div>
</font></div>
</div>
</div>
<br class="">
<br class="">
<div class="" style="">
<hr tabindex="-1" class="" style="display:inline-block; width:636.015625px">
<div id="divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" class="" style="font-size:11pt"><b class="">From:</b><span class="Apple-converted-space"> </span>Eric Pettersen <<a href="mailto:pett@cgl.ucsf.edu" class="">pett@cgl.ucsf.edu</a>><br class="">
<b class="">Sent:</b><span class="Apple-converted-space"> </span>Wednesday, October 14, 2015 1:31 PM<br class="">
<b class="">To:</b><span class="Apple-converted-space"> </span>Dougherty, Matthew T<br class="">
<b class="">Cc:</b><span class="Apple-converted-space"> </span><a href="mailto:chimera-dev@cgl.ucsf.edu" class="">chimera-dev@cgl.ucsf.edu</a><br class="">
<b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [chimera-dev] Model panel rename</font>
<div class=""> </div>
</div>
<div class="">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 class="">
<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="">
<a href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev" class="">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev</a></div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
</body>
</html>