Split out value panel on settings gui as seperate class. Prerequisite for adding scroll bar.

This commit is contained in:
Jamie Cash
2021-02-22 12:32:39 +00:00
parent 862a55d649
commit 6ba28f5a30
4 changed files with 141 additions and 79 deletions
+8 -3
View File
@@ -9,9 +9,8 @@ import wx
import wx.lib.mixins.inspection as wit
class CorrelationMonitorApp(wx.App, wit.InspectionMixin):
class InspectionApp(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
@@ -25,8 +24,14 @@ if __name__ == "__main__":
log_config = Config().get('logging')
logging.config.dictConfig(log_config)
# Do we have inspection turned on. Create correct version of app
inspection = Config().get('developer.inspection')
if inspection:
app = InspectionApp()
else:
app = wx.App(False)
# Start the app
app = CorrelationMonitorApp()
frame = MonitorFrame()
frame.Show()
app.MainLoop()