remove invalid flag from dictchoice dialog - #1705
Merged
Merged
Conversation
David-Baddeley
merged commit Sep 11, 2026
e4c4858
into
python-microscopy:master
4 of 6 checks passed
Contributor
|
Thought we'd already got all of these ... |
Member
Author
|
Seems like a new batch cropped up 🙃 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses issue #invalid wx alignment flags stoped the dictstringeditor from coming up when trying to e.g. use
Output.HDFOutputrecipe module in the recipe editor.Traceback
'''
Traceback (most recent call last):
File "/Users/andy/code/python-microscopy/PYME/ui/custom_traits_editors.py", line 277, in OnFilterAdd
dlg = DictChoiceStrEditDialog(self, mode='new',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/andy/code/python-microscopy/PYME/ui/custom_traits_editors.py", line 134, in init
vsizer.Add(hsizer, 0, wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)
wx._core.wxAssertionError: C++ assertion "CheckSizerFlags(!((flags) & (wxALIGN_CENTRE_VERTICAL)))" failed at ./src/common/sizer.cpp(2273) in DoInsert(): wxALIGN_CENTRE_VERTICAL will be ignored in this sizer: only horizontal alignment flags can be used in vertical sizers
DO NOT PANIC !!
If you're an end user running a program not developed by you, please ignore this message, it is harmless, and please try reporting the problem to the program developers.
You may also set WXSUPPRESS_SIZER_FLAGS_CHECK environment variable to suppress all such checks when running this program.
If you're the developer, simply remove this flag from your code to avoid getting this message. You can also call wxSizerFlags::DisableConsistencyChecks() to globally disable all such checks, but this is strongly not recommended.
'''
Is this a bugfix or an enhancement?
maintenance
Proposed changes:
remove flags which were ignored anyway
Checklist:
wxpython 4.2.5 py311h8325047_2 conda-forge
wxwidgets 3.2.9 h34c1157_0 conda-forge