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