[PyQt] PyQt4 window not properly closing with signals From.close
Ganesh Kumar
bugcy013 at gmail.com
Tue Jun 12 07:31:06 BST 2012
Hi David,
Thanks man, I learn some new thing from yours, I got some idea. thanks
helping out.
I followed you have mentioned tutorials links it's very useful to me.
-Ganesh.
Did I learn something today? If not, I wasted it.
On Tue, Jun 12, 2012 at 1:09 AM, David Boddie <david at boddie.org.uk> wrote:
> On Mon, 11 Jun 2012 15:45:53 +0530, Ganesh Kumar wrote:
>
>> I am new to pyqt, I try two qt designer files one is main window
>> second sub window,
>> Load main window click button open new window <allow things to happen>
>> user clicks exit on that window close sub window return to main window
>> I am tried with Form.close , window.deletelater Not working for me. I
>> have attached my code please guide me guys.
>>
>> http://pastebin.com/UnHS0NRn
>
> In the sub_window.dosumfunction() method, you cannot easily get access to the
> widget itself.
>
> Really, you should avoid modifying the code generated by pyuic4 and instead
> create new widget classes where you define new methods. This approach allows
> you to change the UI in Designer and regenerate the code without having to
> edit the file again.
>
> There seems to be many assignments to self and Form, and it isn't clear to me
> what you wrote and what pyuic4 wrote. Anyway, I modified the code a little so
> that it works, but the code could be improved:
>
> http://pastebin.com/uLz1NRh1
>
> It might be useful for you to look at some tutorials for Designer and pyuic4.
> One can be found here:
>
> http://www.rkblog.rk.edu.pl/w/p/introduction-pyqt4/
>
> A list of other tutorials can be found on this page:
>
> http://www.diotavelli.net/PyQtWiki/Tutorials
>
> David
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
More information about the PyQt
mailing list