main_window.py 文件源码

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

项目:uPyLoader 作者: BetaRavener 项目源码 文件源码
def ask_for_password(self, title, label="Password"):
        if self._preset_password is not None:
            return self._preset_password

        input_dlg = QInputDialog(parent=self, flags=Qt.Dialog)
        input_dlg.setTextEchoMode(QLineEdit.Password)
        input_dlg.setWindowTitle(title)
        input_dlg.setLabelText(label)
        input_dlg.resize(500, 100)
        input_dlg.exec()
        return input_dlg.textValue()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号