Split notebook page (tab) out as seperate class from Settings Dialog.
This commit is contained in:
+11
-2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user