def __init__(self, app, parent, f=False, i=True):
"""
Dialog opened when the Add [Chum] button is pressed, adds to chumsTree widget
"""
super(__class__, self).__init__()
self.parent = parent
self.app = app
self.i = i
self.fin = False
uic.loadUi(self.app.theme["ui_path"] + "/AuthDialog.ui", self)
self.setWindowTitle('Auth')
self.setWindowIcon(QIcon(app.theme["path"] + "/trayicon.png"))
self.acceptButton.clicked.connect(self.accepted)
self.closeButton.clicked.connect(self.rejected)
if f:
self.errorLabel.setText("""Invalid login / token! Failed to login.""")
self.auth = None
self.exec_()
评论列表
文章目录