<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Yongcheng,<div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Tom's on vacation for a few days, so I'll take a stab at this one. The first argument to QFileDialog::getOpenFileName, if you provide it, has to be a QWidget or subclass thereof, not your DLStruct instance. But you don't need to provide that argument -- you can call QFileDialog::getOpenFileName with just the arguments you actually want to specify by using keywords, namely:</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>fname = QFileDialog::getOpenFileName(caption="Select PDB to Open", filter="PDB File (*.pdb)")</div><div class=""><br class=""></div><div class="">--Eric<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Apr 29, 2021, at 10:28 AM, Yongcheng MU <<a href="mailto:ymu004@odu.edu" class="">ymu004@odu.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello Tom,<div class=""><br class=""></div><div class="">Hope you are doing well.</div><div class=""><br class=""></div><div class="">I am creating a GUI, and I have some problems. At the right bottom DL Struct window, I want to click the browse button and select a file, but it holds this error. I wonder if you know what's the problem? (My goal is let users find or input the path of a file, and use this path to submit jobs)</div><div class=""><br class=""></div><div class="">Best regards,</div><div class="">Yongcheng</div><div class=""><br class=""></div><span id="cid:ii_ko35pkcg4"><Screen Shot 2021-04-29 at 1.24.02 PM.png></span><br class=""><div class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 23, 2021 at 7:20 PM Yongcheng MU <<a href="mailto:ymu004@odu.edu" class="">ymu004@odu.edu</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class="">Hello Tom,<div class=""><br class=""></div><div class="">Thank you for the information. I will check these documents you have provided.</div><div class=""><br class="">Best regards,</div><div class="">Yongcheng</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 23, 2021 at 7:01 PM Tom Goddard <<a href="mailto:goddard@sonic.net" target="_blank" class="">goddard@sonic.net</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="">Hi Jing, Yongcheng,<div class=""><br class=""><div class=""> ChimeraX requires all different code from Chimera so I suggest not looking at a Chimera example, that will only confuse you as none of it is right for ChimeraX. There are simple examples of Python scripts for ChimeraX at the ChimeraX recipes site</div><div class=""><br class=""></div><div class=""><a href="https://rbvi.github.io/chimerax-recipes/" target="_blank" class=""><span style="white-space:pre-wrap" class=""> </span>https://rbvi.github.io/chimerax-recipes/</a></div><div class=""><br class=""></div><div class="">For packaging up a plugin there are examples in the ChimeraX programming manual</div><div class=""><br class=""></div><div class=""><span style="white-space:pre-wrap" class=""> </span><a href="https://www.rbvi.ucsf.edu/chimerax/docs/devel/index.html" target="_blank" class="">https://www.rbvi.ucsf.edu/chimerax/docs/devel/index.html</a></div><div class=""><br class=""></div><div class="">And it can also the packaging for plugins using a bundle_info.xml is used by each of the tools in ChimeraX and you can look at any of those as examples at the ChimeraX GitHub code repository</div><div class=""><br class=""></div><div class=""><span style="white-space:pre-wrap" class=""> </span><a href="https://github.com/RBVI/ChimeraX/tree/develop/src/bundles" target="_blank" class="">https://github.com/RBVI/ChimeraX/tree/develop/src/bundles</a></div><div class=""><br class=""></div><div class="">Let me know if you run into trouble.</div><div class=""><br class=""></div><div class=""> Tom</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Apr 23, 2021, at 2:53 PM, He, Jing <<a href="mailto:jhe@cs.odu.edu" target="_blank" class="">jhe@cs.odu.edu</a>> wrote:</div><br class=""><div class=""><div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt" class="">Hi Tom,</div><div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt" class=""><br class=""></div><div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt" class="">Yongcheng has been setting up the bundle of a PyTorch-based deep learning method to detect secondary structures from medium-resolution density maps. He is able to install the bundle on Mac and PC and it looks like working. He started to create a GUI. I passed him our previous code for a Chimera plugin. Below he shows a few snapshots for that code. We are wondering if ChimeraX has similar functions to be called. Previously our code uses Chimera's functions to do input, output, and any display of some calculated results. How do we do this in ChimeraX? </div><div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt" class=""><br class=""></div><div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt" class="">Jing</div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none" class=""><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt" class=""><br class=""></div><div id="gmail-m_-1658530009025658637gmail-m_3106040176959892444appendonsend" class=""></div><hr style="display:inline-block;width:735px" class=""><div id="gmail-m_-1658530009025658637gmail-m_3106040176959892444divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size:11pt" class=""><b class="">From:</b><span class=""> </span>Yongcheng MU <<a href="mailto:ymu004@odu.edu" target="_blank" class="">ymu004@odu.edu</a>><br class=""><b class="">Sent:</b><span class=""> </span>Friday, April 23, 2021 2:04 PM<br class=""><b class="">To:</b><span class=""> </span>He, Jing <<a href="mailto:jhe@cs.odu.edu" target="_blank" class="">jhe@cs.odu.edu</a>><br class=""><b class="">Subject:</b><span class=""> </span>ChimeraX-Deeplearning plugin</font><div class=""> </div></div><div class=""><div dir="ltr" class="">Dear Dr. He,<div class=""><br class=""></div><div class="">I am trying to create a GUI for the bundle. When I check the previous work, I find some codes were called such as chimera.extension. I wonder if ChimeraX needs this kind of code or package as well, and where I can search and find this useful information.</div><div class=""><br class=""></div><div class="">Best regards,</div><div class="">Yongcheng</div><div class=""><div class=""><br class=""></div><div class=""><span id="cid:1790108c0f89e5069e1"><Screen Shot 2021-04-23 at 1.55.24 PM.png></span><br class=""></div><div class=""><span id="cid:1790108c0f892e931242"><Screen Shot 2021-04-23 at 1.55.40 PM.png></span><br class=""></div><div class=""><span id="cid:1790108c0f83e9d54c03"><Screen Shot 2021-04-23 at 1.56.01 PM.png></span></div></div></div></div></div></div></blockquote></div><br class=""></div></div></blockquote></div>
</blockquote></div>
<span id="cid:f_ko35s57h5"><tool.py></span>_______________________________________________<br class="">ChimeraX-users mailing list<br class=""><a href="mailto:ChimeraX-users@cgl.ucsf.edu" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">Manage subscription:<br class="">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users<br class=""></div></blockquote></div><br class=""></div></body></html>