mainframe.py 文件源码

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

项目:fomod-validator 作者: GandaG 项目源码 文件源码
def __init__(self):
        super(Mainframe, self).__init__()
        self.setupUi(self)

        self.setWindowFlags(Qt.WindowSystemMenuHint | Qt.WindowTitleHint)
        window_icon = QIcon()
        window_icon.addPixmap(QPixmap(join(cur_folder, "resources/window_icon.png")), QIcon.Normal, QIcon.Off)
        self.setWindowIcon(window_icon)

        self.buttonBox.accepted.connect(self.accepted)
        self.buttonBox.rejected.connect(self.rejected)
        self.path_button.clicked.connect(self.path_button_clicked)

        self.package_path = ""
        self.checked_validate = False
        self.checked_warnings = False

        if isdir(join(expanduser("~"), ".fomod")):
            config = ConfigParser()
            config.read_dict(default_settings)
            config.read(join(expanduser("~"), ".fomod", ".validator"))
            self.path_text.setText(config["Path"]["lastused"])

        self.check_updates()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号