<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Is there any best practice suggestion as to how to interact with the Qt ui files? Is it better to load them dynamically using the uic module with the load uic.loadUi method?</div><div><code class="m_-6685070824593418344gmail-descname" style="background-color:rgb(255,255,255);font-weight:bold;font-size:1.2em;color:rgb(0,0,0);text-decoration-style:initial;text-decoration-color:initial"><br></code></div><div><font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:12.675px">Or is it recommended to compile the ui files into python code using pyuic4?</span></font></div><div><font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:12.675px"></span></font></div></div></blockquote></div><br></div><div class="gmail_extra">I've done it both ways but compiling them beforehand should have better performance and when bundling using py2exe/cxfreeze/pyinstaller there's no extra work to do since they are normal .py source files (and your .ui files won't be in the dist).</div></div>