<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">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" 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; -webkit-text-stroke-width: 0px; font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class="">thanks. the python did not like the double quotes. had to change. </div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">To make it stranger I did this to keep the code for later purposes</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="font-size: 12pt;" class=""># </span><span style="font-size: 12pt;" class="">mp.uiMaster().winfo_toplevel().geometry(“+x+y”)</span><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="font-size: 12pt;" class=""><br class=""></span></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="font-size: 12pt;" class="">The extension aborted, had to switch the double quotes to single regardless it was a comment.</span></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="font-size: 12pt;" class="">also noticed they were </span><span style="font-size: 12pt;" class="">“ ” quotes as opposed to " "</span></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="font-size: 12pt;" class=""><br class=""></span></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="font-size: 12pt;" class="">similar questions on the model panel buttons</span></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">'note', </div><div style="margin-top: 0px; margin-bottom: 0px;" class="">'show only',</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">'select',</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">'hide',</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="font-size: 12pt;" class=""><br class=""></span></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div id="Signature" class=""><div id="divtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class=""><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 style="font-size: 13pt; font-family: Calibri;" class="">=================================================</span><br class=""></div><div class="PlainText"><span style="font-size: 13pt; font-family: Calibri;" class="">=================================================</span><span style="font-size: 13pt; font-family: Calibri;" class=""><br class=""></span></div></font></div></div></div><br class=""><br class=""><div style="" class=""><hr tabindex="-1" style="display: inline-block; width: 636.015625px;" class=""><div id="divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><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></body></html>