PyQT: QDialog and QMainWindow interacting with each other

Kai Teuber live4love at arcor.de
Tue Feb 28 08:10:39 EST 2006


Fabian Steiner schrieb:
> MyDialog is closed by calling MyDialog.accept(). What can I do so that 
> self.showListViewItems() is called after MyDialog has been closed?
> 
> Thank you for any input!


Hi Fabian,

override the accept() method and call self.showListViewItems() there.
But remember to call QDialog.accept() at the end.

def accept( self ):
	self.showListViewItems()
	QDialog.accept( self )


Kai Teuber



More information about the Python-list mailing list