Refactor Python wizard save behavior and automate script transfer to the corresponding data model object#643
Open
marvinoe21 wants to merge 4 commits into
Open
Refactor Python wizard save behavior and automate script transfer to the corresponding data model object#643marvinoe21 wants to merge 4 commits into
marvinoe21 wants to merge 4 commits into
Conversation
…the corresponding data model object
This was referenced Dec 5, 2025
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.
Description:
Currently, the Python Task wizard and Python Calculator wizard offer a Python editor with the following behavior:
Ctrl+Sis available both globally in GTlab (for saving the project) and in the Python wizard.Ctrl+Sonly transfers the script from the editor to the data model object (task or calculator); it does not persist the project to disk.Cancelbutton discards any changes made since the lastCtrl+Sin the wizard.Ctrl+Sin the wizard.This leads to confusion for users due to inconsistent save behavior between GTlab's main GUI and the wizard.
Changes in this PR:
Savebutton andCtrl+Sshortcut were removed from the wizard to avoid conflicting behaviors.Cancelbutton and the "Do you want to save..." message box were removed, since all changes are now automatically applied to the data model and can be undone via GTlab's Undo/Redo system.Benefits: