Split notebook page (tab) out as seperate class from Settings Dialog.

This commit is contained in:
Jamie Cash
2021-02-17 18:24:48 +00:00
parent 2349a362e8
commit 862a55d649
5 changed files with 497 additions and 386 deletions
+11 -2
View File
@@ -2,11 +2,20 @@
Application to monitor previously correlated symbol pairs for correlation divergence.
"""
import definitions
import yaml
import logging.config
from mt5_correlation.gui import MonitorFrame
from mt5_correlation.config import Config
import wx
import wx.lib.mixins.inspection as wit
class CorrelationMonitorApp(wx.App, wit.InspectionMixin):
# Override app to use inspection.
# TODO Remove wit.InspectionMixin from overrides when live.
def OnInit(self):
self.Init() # initialize the inspection tool
return True
if __name__ == "__main__":
# Load the config
@@ -17,7 +26,7 @@ if __name__ == "__main__":
logging.config.dictConfig(log_config)
# Start the app
app = wx.App(False)
app = CorrelationMonitorApp()
frame = MonitorFrame()
frame.Show()
app.MainLoop()