def __init__(self): QtGui.QWidget.__init__(self) self.auth = Ui_authForm() self.auth.setupUi(self) self.auth.loginButton.clicked.connect(self.authenticate)
class authClient(QtGui.QWidget): def __init__(self): QtGui.QWidget.__init__(self) self.auth = Ui_authForm() self.auth.setupUi(self) self.auth.loginButton.clicked.connect(self.authenticate) def authenticate(self): self.username = self.auth.username.text().toAscii() self.password = self.auth.password.text().toAscii() self.showDirWidget() def showDirWidget(self): window.hide() global window window = dirSelector(self.username, self.password) window.show()