27 lines
552 B
Python
27 lines
552 B
Python
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)
|
|
|
|
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
|