Developing a wxPython app for cross-platform (Windows, Linux & Mac). So far I’ve only tested on Windows, and this is the main target.
The following is with Python3.6 wxPython “Phoenix” 4.0.7.post2 (wxWidgets 22.214.171.124 vc140_x64)
Windows 10 18362 “1903”
The app has a Frame and a Dialog.
Without any background setup : the Frame is dark-grey and the Dialog is light grey.
self.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_WINDOW ) )
–> light background
self.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_MENU ) )
–> white background
So this is exactly like Dialog uses COLOUR_MENU and Frame uses COLOUR_APPWORKSPACE by default for the background.
To get a light grey bg as I expect for the Frame, I need to use myframe.SetBackgroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_MENU))
What are the default background colors for Frame, for Dialog?
What I observe is the correct and expected behaviour? Dialog has MENU color background?
Dialog and Frame have a different default background color?
Also, to me, the default color “APPWORKSPACE” should be light grey for Frame (as the Dialog).