PyQT: QDialog and QMainWindow interacting with each other

Fabian Steiner lists at fabis-site.net
Mon Feb 27 17:11:08 EST 2006


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.openNewDialog)
...

def openNewDialog(self):
    dialog = MyDialog(self)
    dialog.show()
    self.showListViewItems() # this line isn't recognized


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!

Cheers,
Fabian Steiner



More information about the Python-list mailing list