Пример #1
0
    def __init__(self):
        QtGui.QWidget.__init__(self)

        self.auth = Ui_authForm()
        self.auth.setupUi(self)

        self.auth.loginButton.clicked.connect(self.authenticate)
Пример #2
0
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()