Graphical Modeler: fix UI produced by Python export#3373
Graphical Modeler: fix UI produced by Python export#3373landam wants to merge 1 commit intoOSGeo:mainfrom
Conversation
|
I was about to approve the changes, but I double checked the current python scripts in the repo. Why does the parser not fail with scripts in the repo, but would fail with the exported ones? See PR here when it was added #1287. And the specific changes to g.parser's c code Current code for g.parser is: Lines 107 to 118 in e276098 Current code for gconsole.py: grass/gui/wxpython/core/gconsole.py Lines 634 to 646 in e276098 If its an urgent fix, this PR could go through, as it is fixing the consequence of the bug, but maybe fixing the source of the problem would be a better solution. |
you are right, I was not aware of #1287.
This PR is replaced by #3375 |
Python scripts generated by Graphical Modeler (
Python editor -> Save As) contain broken UI definition. Sample model attached:buffer.gxm.zip
Extra space between
#and%causes thatGConsoleskips interface completely: https://github.com/OSGeo/grass/blob/main/gui/wxpython/core/gconsole.py#L641Screencast.from.2024-01-24.14-37-48.webm
The PR fixes this bug:
Screencast.from.2024-01-24.14-45-45.webm