An example portion of code from my own (click event for New User button):
def slotUserNew(self):
self.
userDialog = QtGui.
QDialog(self
) self.userDialog.ui = UserDialog(self) # caller=self, just if you wanted to call main dialog from the sub-dialog.
self.userDialog.ui.show()
def slotUserNew(self):
self.userDialog = QtGui.QDialog(self)
self.userDialog.ui = UserDialog(self) # caller=self, just if you wanted to call main dialog from the sub-dialog.
self.userDialog.ui.show()
To copy to clipboard, switch view to plain text mode
Bookmarks