Top > wxPython > Appearance


- How to react to dark mode change?
--  https://discuss.wxpython.org/t/how-to-react-to-dark-mode-change/35905

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

Reload   Diff   Front page List of pages Search Recent changes Backup Referer   Help   RSS of recent changes