[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">&lt;<a \
href="mailto:vincent.vandevyvre@swing.be" \
target="_blank">vincent.vandevyvre@swing.be</a>&gt;</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> &gt; Hi<br>
&gt;<br>
&gt; I am dealing with 2 windows . One is created by Qt Designer and i<br>
&gt; import it on test.py program . what i did i make a Widget on the test<br>
&gt; program and than add a button to it and on click event I try to popup<br>
&gt; the other window(gui1.py) created by Qt Designer but it never pop ups<br>
&gt; and when i use break and do line by line debugging it shows me this<br>
&gt; message after running this command &quot;myapp2 = MyForm()&quot; on line \
number<br> &gt; 35 test.py .<br>
&gt;<br>
&gt; QCoreApplication::exec: The event loop is already running<br>
&gt;<br>
&gt; and once i pressed enter on the terminal it pop up the other window .<br>
&gt;<br>
&gt; I am confuse where i am wrong .<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt; Ahmed<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; PyQt mailing list    <a \
href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br> &gt; <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 &lt;<a href="https://launchpad.net/oqapy" \
target="_blank">https://launchpad.net/oqapy</a>&gt; . Qarte<br> &lt;<a \
href="https://launchpad.net/qarte" \
target="_blank">https://launchpad.net/qarte</a>&gt; . PaQager &lt;<a \
href="https://launchpad.net/paqager" \
target="_blank">https://launchpad.net/paqager</a>&gt;<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