[PyQt] Displaying 2nd Window Problem
Vincent Vande Vyvre
vincent.vandevyvre at swing.be
Fri Aug 17 12:25:55 BST 2012
On 16/08/12 22:56, uahmed wrote:
> Hi
>
> I am dealing with 2 windows . One is created by Qt Designer and i
> import it on test.py program . what i did i make a Widget on the test
> program and than add a button to it and on click event I try to popup
> the other window(gui1.py) created by Qt Designer but it never pop ups
> and when i use break and do line by line debugging it shows me this
> message after running this command "myapp2 = MyForm()" on line number
> 35 test.py .
>
> QCoreApplication::exec: The event loop is already running
>
> and once i pressed enter on the terminal it pop up the other window .
>
> I am confuse where i am wrong .
>
> Thanks
>
> Ahmed
>
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
You must keep a reference of your second window.
self.myapp2 = MyForm()
self.myapp2.show()
--
Vincent V.V.
Oqapy <https://launchpad.net/oqapy> . Qarte
<https://launchpad.net/qarte> . PaQager <https://launchpad.net/paqager>
More information about the PyQt
mailing list