def OnColourChanged(self, event): sys_appearance = wx.SystemSettings.GetAppearance() dark = sys_appearance.IsDark() print("dark = %s" % dark)