Skip to content

Comments

wxGUI/gmodeler: fix setToolBar failing on macOS#5298

Merged
pesekon2 merged 6 commits intoOSGeo:mainfrom
pesekon2:gmodeler_fix_settoolbar_failing_macos
Mar 5, 2025
Merged

wxGUI/gmodeler: fix setToolBar failing on macOS#5298
pesekon2 merged 6 commits intoOSGeo:mainfrom
pesekon2:gmodeler_fix_settoolbar_failing_macos

Conversation

@pesekon2
Copy link
Contributor

@pesekon2 pesekon2 commented Mar 4, 2025

The bug seems to be in wxpython: wxWidgets/wxWidgets#24560

One of the workarounds mentioned in the linked issue is to call Realize() before setToolBar() - this is an attempt to fix it with this trick

@pesekon2 pesekon2 requested a review from nilason March 4, 2025 13:52
@pesekon2 pesekon2 self-assigned this Mar 4, 2025
@github-actions github-actions bot added GUI wxGUI related Python Related code is in Python labels Mar 4, 2025
@neteler neteler added the backport to 8.4 PR needs to be backported to release branch 8.4 label Mar 4, 2025
@pesekon2 pesekon2 added the bug Something isn't working label Mar 4, 2025
@pesekon2 pesekon2 marked this pull request as ready for review March 4, 2025 17:31
@nilason nilason added this to the 8.5.0 milestone Mar 5, 2025
@pesekon2 pesekon2 merged commit 1b5a32e into OSGeo:main Mar 5, 2025
28 checks passed
@pesekon2 pesekon2 deleted the gmodeler_fix_settoolbar_failing_macos branch March 5, 2025 14:05
pesekon2 added a commit that referenced this pull request Mar 5, 2025
* fix needed for macOS does not seem to be needed after wx 4.2.1; it seems to break the tool instead 

tested and proposed by @nilason
@pesekon2
Copy link
Contributor Author

pesekon2 commented Mar 5, 2025

Cherry-picked to releasebranch_8_4 in 797f1cf

@pesekon2 pesekon2 removed the backport to 8.4 PR needs to be backported to release branch 8.4 label Mar 5, 2025
echoix pushed a commit to echoix/grass that referenced this pull request Mar 8, 2025
* fix needed for macOS does not seem to be needed after wx 4.2.1; it seems to break the tool instead 

tested and proposed by @nilason
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working GUI wxGUI related Python Related code is in Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] g.gui.gmodeler fails in 8.4.1

3 participants