Hi Vadim,
Am 03.04.2015 20:00 schrieb Vadim Zeitlin:
> I don't know why was this change done (commit a1cb0b11 which did this
> doesn't explain the reason for it, unfortunately), but it seems
> reasonable to me. I'd only consider reverting it if other ports,
> notably MSW, accept invalid bitmaps here. Do they?
It's not exactly the same error on MSW, but it's very similar:
# python AllWidgets_28.py
AllWidgets_28.py:327: wxPyDeprecationWarning: Using deprecated class PySimpleApp
.
AllWidgets28App = wx.PySimpleApp(0)
Traceback (most recent call last):
File "AllWidgets_28.py", line 328, in <module>
All_Widgets = All_Widgets_Frame(None, wx.ID_ANY, "")
File "AllWidgets_28.py", line 124, in __init__
self.__set_properties()
File "AllWidgets_28.py", line 140, in __set_properties
self.All_Widgets_toolbar.Realize()
File "C:\Python27\lib\site-packages\wx-3.0-msw\wx\_controls.py", line 3797, in
Realize
return _controls_.ToolBarBase_Realize(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "Assert failure" failed at ..\..\src\ms
w\toolbar.cpp(801) in wxToolBar::Realize(): invalid tool button bitmap
Looks like using wxNullBitmaps is a bad idea, even if it was possible on 2.8. I'll stop using NullBitmaps in my unittests now.
Thank you for your support,
Carsten