dialogs.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:Pesterchum-Discord 作者: henry232323 项目源码 文件源码
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_()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号