Added settings dialog
This commit is contained in:
+6
-8
@@ -9,17 +9,15 @@ from mt5_correlation.config import Config
|
||||
import wx
|
||||
|
||||
if __name__ == "__main__":
|
||||
# Configure the logger
|
||||
with open(fr'{definitions.ROOT_DIR}\logging_conf.yaml', 'rt') as file:
|
||||
config = yaml.safe_load(file.read())
|
||||
logging.config.dictConfig(config)
|
||||
|
||||
# Load the config
|
||||
config = Config.instance()
|
||||
config.load(fr"{definitions.ROOT_DIR}\config.yaml")
|
||||
Config().load(fr"{definitions.ROOT_DIR}\config.yaml")
|
||||
|
||||
# Get logging config and configure the logger
|
||||
log_config = Config().get('logging')
|
||||
logging.config.dictConfig(log_config)
|
||||
|
||||
# Start the app
|
||||
app = wx.App(False)
|
||||
frame = MonitorFrame(None, wx.ID_ANY, "")
|
||||
frame = MonitorFrame()
|
||||
frame.Show()
|
||||
app.MainLoop()
|
||||
|
||||
Reference in New Issue
Block a user