Thanks a lot . It make it works :)<br><br><div class="gmail_quote">On Fri, Aug 17, 2012 at 4:25 PM, Vincent Vande Vyvre <span dir="ltr"><<a href="mailto:vincent.vandevyvre@swing.be" target="_blank">vincent.vandevyvre@swing.be</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 16/08/12 22:56, uahmed wrote:<br>
> Hi<br>
><br>
> I am dealing with 2 windows . One is created by Qt Designer and i<br>
> import it on test.py program . what i did i make a Widget on the test<br>
> program and than add a button to it and on click event I try to popup<br>
> the other window(gui1.py) created by Qt Designer but it never pop ups<br>
> and when i use break and do line by line debugging it shows me this<br>
> message after running this command "myapp2 = MyForm()" on line number<br>
> 35 test.py .<br>
><br>
> QCoreApplication::exec: The event loop is already running<br>
><br>
> and once i pressed enter on the terminal it pop up the other window .<br>
><br>
> I am confuse where i am wrong .<br>
><br>
> Thanks<br>
><br>
> Ahmed<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
> <a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
You must keep a reference of your second window.<br>
<br>
self.myapp2 = MyForm()<br>
self.myapp2.show()<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Vincent V.V.<br>
Oqapy <<a href="https://launchpad.net/oqapy" target="_blank">https://launchpad.net/oqapy</a>> . Qarte<br>
<<a href="https://launchpad.net/qarte" target="_blank">https://launchpad.net/qarte</a>> . PaQager <<a href="https://launchpad.net/paqager" target="_blank">https://launchpad.net/paqager</a>><br>
<br>
_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</font></span></blockquote></div><br>