hildogjr / KiCost

Build cost spreadsheet for a KiCad project.
MIT License
496 stars 97 forks source link

Fix invalid combination of sizer flags passed to wxPython. #458

Closed sliedes closed 3 years ago

sliedes commented 3 years ago

In version 4.1, wxPython became more strict about accepting nonsensical combinations of sizer flags. From the release notes of wxPython 4.1.1:

This should have been mentioned in the notes for the last release, but alas, it wandered away and got lost. wxWidgets is now validating the flags passed when adding items to a sizer, to ensure that they are the correct flags for the type of the sizer. If the given flags do not make sense, for example using horizontal alignment flags in a horizontal box sizer, then a wxAssertionError error is raised.

Fix this by removing bogus centering flags in some calls.

hildogjr commented 3 years ago

This part of the code is automatically generated by the wxFormBuild software (file kicost_gui_wxFormBuilder.fbp), if you want to have a look.