Skip to content

remove invalid wx sizer flags - #1707

Open
barentine wants to merge 11 commits into
python-microscopy:masterfrom
barentine:globalwxflagcheck
Open

remove invalid wx sizer flags#1707
barentine wants to merge 11 commits into
python-microscopy:masterfrom
barentine:globalwxflagcheck

Conversation

@barentine

Copy link
Copy Markdown
Member

Addresses issue #1706 and follow-ons from #1705. Also capitalized an L in wx.HORIZONTAL so it resolves even though it isn't used.

Is this a bugfix or an enhancement?
bugfix on later wxwidgets/wxpython

Proposed changes:
follow-on from #1705 , using a Claude-coded parse of our source code to look for invalid wx sizer flags. Added the check as a unit test to prevent us from doing this in the future.

Remove horizontal sizer flags on horizontal sizers, align with expand, etc.

Checklist:
Not all of these have been tested, but I spot checked several and they crash us out like #1705 does on
wxpython 4.2.5 py311h8325047_2 conda-forge
wxwidgets 3.2.9 h34c1157_0 conda-forge

(spot checked 3 files fixes, mentioned in commit messages, by removing the fix and hitting the bug through the GUI)

Notes:
Some of these are tough to test at the moment because they exist in code which is never called. Some things we might want to just remove include LaserControlFrame.py and IntegrationSliders.IntegrationSliders_. Several others under e.g. if False statements. But with the test hitting them as failures I added them as fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant