Thank you both for your help.<br><br>I have fixed this, it seems it was in fact a simple case of scope. I now define newServiceForm as a member of the class that I am working in. Doing this and refering to newServiceForm as self.newServiceForm has corrected my issue.<br>
<br>Thanks again!<br><br>Regards,<br>John V. Busch<br><br><div class="gmail_quote">On Wed, Apr 11, 2012 at 12:42 PM, <span dir="ltr"><<a href="mailto:sole@esrf.fr">sole@esrf.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
Quoting Andreas Pakulat <<a href="mailto:apaku@gmx.de" target="_blank">apaku@gmx.de</a>>:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 11.04.12 12:26:09, John V. Busch wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have a bug that only occurs when I am NOT debugging.<br>
<br>
I am very new to pyQT, so please forgive if this is something obvious.<br>
<br>
The following code is called from another QDialog class upon a particular<br>
button click.<br>
<br>
newServiceForm = QDialog()<br>
newServiceUI = Ui_Dialog()<br>
newServiceUI.setupUi(<u></u>newServiceForm)<br>
<br>
newServiceUI.<u></u>installScriptButton.clicked.<u></u>connect(self.<u></u>installScriptButton_clicked)<br>
newServiceForm.show()<br>
<br>
If I set a breakpoint anywhere in this method the newServiceForm displays<br>
with no issue; however if I allow the application to execute naturally, the<br>
form never displays.<br>
<br>
I am assuming there is some race condition here internal to QT that is<br>
being created likely due to my misuse.<br>
</blockquote>
<br>
Once you provide a complete example we might be able to help you. The<br>
code above has no obvious errors, but it might well be that you're using<br>
it incorrectly.<br>
<br>
</blockquote>
<br></div>
It looks as the typical issue of not holding a reference to newServiceForm, but as Andreas says, you have to provide a complete example.<br>
<br>
Armando<div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.<u></u>com/mailman/listinfo/pyqt</a><br>
</div></div></blockquote></div><br>