<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi,</p>
<p class="MsoNormal">I hope you are doing well.</p>
<p class="MsoNormal">I have a python script, to be executed in nogui mode, which does the following:</p>
<p class="MsoNormal"> -open a pdb file</p>
<p class="MsoNormal" style="text-indent:.5in">-define centroids for specific residues</p>
<p class="MsoNormal" style="text-indent:.5in">-draw pseudobonds between specific residues -> I am using the command distance for this purpose</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The issue arises when I have to save the session (.cxs) when in nogui mode, I am getting this error:</p>
<p class="MsoNormal" style="text-indent:.5in">QGuiApplication::font(): no QGuiApplication instance and no application font set.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I believe it is because of the text labels created by the command distance. So, I included the following in my code: run(session, ‘hide #2.*’) and I can now save the session.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I noticed in the model panel that the pdb file is assigned to #1 and the pseudobond to #2. The text labels are created as a submodel of the pseudobond (so #2.1, 2.2,..), hence why the ‘hide #2.*’</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Will this fix always work? Is the model assignment also dependent on the pdb file being opened?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,</p>
<p class="MsoNormal">Shubham</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986">
Mail</a> for Windows</p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>