Figured it out with the help of http://zetcode.com/tutorials/pyqt4/firstprograms/
I just had to rename my function to "closeEvent", and then connect to it:
Qt Code:
self.connect(self, Qt.SIGNAL('triggered()'), self.closeEvent def closeEvent(self, event): print "Closing" self.destory()To copy to clipboard, switch view to plain text mode
Bookmarks