I’m just switching from wxpython 4.0.7.post2 to wxpython 4.1.
I use a custom Statusbar in my apps in order to use a custom background colour.
This has worked with wxpython 4.0.7 on Mac
and on Windows:
With wxpython 4.1 it stil works on Windows but crashes on Mac with the following
Traceback (most recent call last): File "... /statusbar.py", line 122, in <module> window = TestFrame(None) File "... /statusbar.py", line 110, in __init__ self.statusBar = ColouredStatusbar(self, wx.ID_ANY, 3) File "... /statusbar.py", line 31, in __init__ self.SetBackgroundStyle(wx.BG_STYLE_COLOUR) wx._core.wxAssertionError: C++ assertion ""(m_backgroundStyle != wxBG_STYLE_TRANSPARENT) || (style == wxBG_STYLE_TRANSPARENT)"" failed at /Users/robind/projects/bb2/dist-osx-py36/build/ext/wxWidgets/src/common/wincmn.cpp(1663) in SetBackgroundStyle(): wxBG_STYLE_TRANSPARENT can't be unset once it was set.
Bug or feature? Can I do anything to circumvent this problem?
I use python 3.7.7 64-bit on Windows 7
and python 3.6.5 on Mac Mojave (10.14.6)
I have attached a runnable test application.
statusbar.py (4.5 KB)
All the best