Re: PyQT: QDialog and QMainWindow interacting with each other

2006-02-28 Thread Fabian Steiner
Hi Kai! Kai Teuber wrote: > 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 ) Thank you very much, I got it working :-)

Re: PyQT: QDialog and QMainWindow interacting with each other

2006-02-28 Thread Kai Teuber
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 ca

PyQT: QDialog and QMainWindow interacting with each other

2006-02-27 Thread Fabian Steiner
Hello! I have got a QMainWindow with a QListView, in which the different entries of a database are shown to the user. Moreover it has got a QPushButton, so that another QDialog can be opened where the user is able to add a new entry: ... self.connect(self.btnNew, SIGNAL('clicked()'), self.ope