Dietmar Schwertberger
Dietmar Schwertberger
There is an assertion. If you suppress assertions, this results in an address exception immediately afterwards. There is no bug.
Add `app.SetAssertMode( wx.APP_ASSERT_DIALOG )` The default is `wx.APP_ASSERT_EXCEPTION`. In https://github.com/wxWidgets/Phoenix/blob/master/src/app_ex.cpp lines 144ff this will set a Python exception. Unfortunately, the address exception avoids the function returning.
I will open an issue on wxWidgets to get their feedback on argument checking.
Let's wait for feedback from https://github.com/wxWidgets/wxWidgets/issues/22358
The wxWidgets change is implemented now. Once wxPython will build on wxWidgets 4.1.7, `APP_ASSERT_EXCEPTION` should work. I would suggest to close the ticket.
This is certainly a wxWidgets bug. I see it also in the wxWidgets grid demo when I use your settings (auto resize and native header).
Actually, it would always trigger if the column widths are set individually. I have created a wxWidgets PR to fix this.
The PR has been merged. At some time, it should find its way into wxPython as well...
The documentation does not mention negative sizes. I would say, it's not supported and I don't see the motivation why anyone would like to use negative sizes. It's definitely a...
Coordinate transformations are doing exactly this: they transform coordinates. They do not transform widths or heights. They do not necessarily preserve angles. So transforming coordinates for a rectangle is pointless....