コード例 #1
0
ファイル: main.py プロジェクト: iizukak/PyQt4_tumblr
class authWindow(QtGui.QDialog):
    def __init__(self, parent=None):
        super(authWindow, self).__init__(parent)
        self.dialog = Ui_Dialog()
        self.dialog.setupUi(self)
        QtCore.QObject.connect(self.dialog.buttonBox, QtCore.SIGNAL('accepted()'), self.accepted)
        
    def accepted(self):
        print 'mail =', self.dialog.mail.text()
        print 'username ='******'password = ', self.dialog.password.text()
        xauth.auth(self.dialog.username.text(), self.dialog.mail.text(), self.dialog.password.text())
        myapp.setClient()
        myapp.reload()
コード例 #2
0
ファイル: main.py プロジェクト: iizukak/PyQt4_tumblr
 def __init__(self, parent=None):
     super(authWindow, self).__init__(parent)
     self.dialog = Ui_Dialog()
     self.dialog.setupUi(self)
     QtCore.QObject.connect(self.dialog.buttonBox, QtCore.SIGNAL('accepted()'), self.accepted)