[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] Displaying 2nd Window Problem
From: uahmed <gleam.uahmed () gmail ! com>
Date: 2012-08-17 15:15:12
Message-ID: CAEUvQQyg7Zi+XBT9FEkNKxqc3hNqLb_i_T95w-AnyHJnayc-6Q () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Thanks a lot . It make it works :)
On Fri, Aug 17, 2012 at 4:25 PM, Vincent Vande Vyvre <
vincent.vandevyvre@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@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@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
[Attachment #5 (text/html)]
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>
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic