-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Describe the bug
Affected script: Simple Python IDE using Tkinter
The save_as() function is supposed to let the user choose a new destination every time it is called. However, when the file has already been saved, the function skips the saving dialog entirely and overwrites the existing file. This makes Save and Save As identical, making the user unable to duplicate or export the file to a different location.
Steps to reproduce the behavior
- Open any existing file using
File > Open. - Make any change in the IDE.
- Click
File > Save As. - No dialog appears and the original file is overwritten.
Expected behavior
"Save As" should always open a file explorer dialog that lets the user specify a new file name and path, regardless of whether a file is currently loaded. The original file must remain untouched
Screenshots
No response
Device?
Desktop
Which OS are affected?
Linux
Enter the version of your web browser
No web browser is affected by this bug.
Which browsers are affected?
No response
Additional context
I selected "Linux" as affected OS because I tested the script on Void Linux x86_64, but the issue is the same for the other types of OS.
Record
- I agree to follow this project's Code of Conduct
- I'm a GSSoC'23 contributor
- I want to work on this issue