[PyQt] close events

Paul Giannaros ceruleanblaze at gmail.com
Thu Sep 13 16:35:59 BST 2007


On 13/09/2007, lucaberto at libero.it <lucaberto at libero.it> wrote:
> Hello
>
> i have made a pushButton that when pressed it make some instruction and then close the application with the command self.close().
> But if i need to  make the same instruction when i press the x on the right upper corner on my form, how i can intercept the event close?

Reimplement closeEvent in your window subclass.

>
> Thanks Luca
>
>
>
>
> ------------------------------------------------------
> Leggi GRATIS le tue mail con il telefonino i-mode™ di Wind
> http://i-mode.wind.it/
>
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>



More information about the PyQt mailing list