Skip to content

gh-158067: Keep Python files first in IDLE Open dialog from Shell - #158071

Open
lazerg wants to merge 2 commits into
python:mainfrom
lazerg:fix-issue-158067
Open

lazerg wants to merge 2 commits into
python:mainfrom
lazerg:fix-issue-158067

Conversation

@lazerg

@lazerg lazerg commented Sep 24, 2026

Copy link
Copy Markdown

gh-65339 made Shell and Output windows save as text by setting io.filetypes to the text-first list, but askopenfile reads the same attribute. Since Shell is usually the first window, File > Open started with "Text files (*.txt)" selected and hid .py files.

The save dialog now reads a separate save_filetypes attribute, which Output windows override, so File > Open keeps listing Python files first.

Fixes #158067

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IDLE 3.14.7 FileOpenDialog preselection is Text files (*.txt)

1 participant