Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #91844

Re: Python.exe has stopped working

Newsgroups comp.lang.python
Date 2015-06-02 07:29 -0700
References <8a6ed08d-7dd6-4a4a-a466-9d3ad98f8dff@googlegroups.com> <mailman.62.1433254395.13271.python-list@python.org>
Message-ID <7c4cd02a-adfa-44c1-80f6-406b3447fb0c@googlegroups.com> (permalink)
Subject Re: Python.exe has stopped working
From Alexis Dubois <alex@duboaa.net>

Show all headers | View raw


On Tuesday, June 2, 2015 at 4:13:27 PM UTC+2, Laura Creighton wrote:
> In a message of Tue, 02 Jun 2015 06:09:34 -0700, Alexis Dubois writes:
> >Hello !
> >
> >I have this kind of message every time I quit my PyQt4 app whatever the method to quit is: a quit action menu, the windows "red cross", by quit(), close(), destroy(), deletelater(), ...
> >
> >"python.exe has stopped working"
> >->Check online for a solution
> >->Close the program
> >
> >I need to specify that the app is working nice, just have this message when quit.
> >Do you have an idea to help me understand this issue?
> >
> >Thanks in advance
> >Best regards
> >Alexis
> >-- 
> >https://mail.python.org/mailman/listinfo/python-list
> 
> You can override closeEvent
> 
> def closeEvent(self, event):
>     QtGui.qApp.quit()
>         event.ignore()
> 
> This just shuts it up, you may have more complicated things you want to do.
> 
> Laura

Thanks Laura,

Unfortunately, my closeEvent is already override as this:

def closeEvent(self, event):        
        reply = QtGui.QMessageBox.question(self, 'Message',
            "Are you sure to quit HWL?", QtGui.QMessageBox.Yes | 
            QtGui.QMessageBox.No, QtGui.QMessageBox.No)

        if reply == QtGui.QMessageBox.Yes:
            app.quit()
        else:
            event.ignore()

Replacing app.quit() by QtGui.qApp.quit() doesn't change anything.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python.exe has stopped working Alexis Dubois <alex@duboaa.net> - 2015-06-02 06:09 -0700
  Re: Python.exe has stopped working Laura Creighton <lac@openend.se> - 2015-06-02 16:12 +0200
    Re: Python.exe has stopped working Alexis Dubois <alex@duboaa.net> - 2015-06-02 07:29 -0700
  Re: Python.exe has stopped working Alexis Dubois <alex@duboaa.net> - 2015-06-05 02:03 -0700
    Re: Python.exe has stopped working Christian Gollwitzer <auriocus@gmx.de> - 2015-06-05 11:15 +0200
      Re: Python.exe has stopped working Laura Creighton <lac@openend.se> - 2015-06-06 13:39 +0200
        [Solved] Python.exe has stopped working Alexis Dubois <alex@duboaa.net> - 2015-06-19 00:01 -0700
    Re: Python.exe has stopped working Stephen Hansen <me+python@ixokai.io> - 2015-06-05 09:24 -0700

csiph-web