更新优化
This commit is contained in:
+13
-4
@@ -1,17 +1,26 @@
|
||||
import os
|
||||
import logging
|
||||
|
||||
from .mil_tool_ui import Ui_FrameMILTool
|
||||
from PySide6.QtWidgets import QFrame
|
||||
|
||||
from mil.core import Config
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
CONF = "mil.json"
|
||||
|
||||
class FrameMILTool(QFrame,Ui_FrameMILTool):
|
||||
def __init__(self,parent=None):
|
||||
super().__init__(parent)
|
||||
self.setupUi(self)
|
||||
|
||||
def init_ui(self):
|
||||
pass
|
||||
# logger.info("FrameMILTool 初始化完成")
|
||||
self.initUI()
|
||||
|
||||
|
||||
def initUI(self):
|
||||
self.config = Config()
|
||||
if os.path.exists(CONF):
|
||||
self.config.load_config(CONF)
|
||||
else:
|
||||
self.config.save_config(CONF)
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user