[PyQt] Displaying 2nd Window Problem

uahmed gleam.uahmed at gmail.com
Fri Aug 17 16:15:12 BST 2012


Thanks a lot . It make it works :)

On Fri, Aug 17, 2012 at 4:25 PM, Vincent Vande Vyvre <
vincent.vandevyvre at swing.be> wrote:

> 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>
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20120817/0f639b4b/attachment.html>


More information about the PyQt mailing list