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()
评论列表
文章目录