Like this?
def openAddDialog(self):
print "running openAddDialog..."
diag = AddDevice()
diag.exec_()
print diag.getIPv4(), diag.getUsername(), diag.getPassword()
def openAddDialog(self):
print "running openAddDialog..."
diag = AddDevice()
diag.exec_()
print diag.getIPv4(), diag.getUsername(), diag.getPassword()
To copy to clipboard, switch view to plain text mode
Does not seem like a good way to go, the values will be read if the user cancels/aborts the dialog window. This is exactly what I can't get my head around. I want the buttons and it's slots in the dialog class, but the values from the fields should be sent to or read from the MainWindow.
Bookmarks