Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b236af07
Commit
b236af07
authored
Jul 09, 2012
by
Ned Deily
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #4832: Modify IDLE to save files with .py extension by
default on Windows and OS X as it already does with X11 Tk.
parent
120bb8f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
Lib/idlelib/IOBinding.py
Lib/idlelib/IOBinding.py
+6
-2
Lib/idlelib/NEWS.txt
Lib/idlelib/NEWS.txt
+3
-0
No files found.
Lib/idlelib/IOBinding.py
View file @
b236af07
...
...
@@ -485,6 +485,8 @@ class IOBinding:
(
"All files"
,
"*"
),
]
defaultextension
=
'.py'
if
sys
.
platform
==
'darwin'
else
''
def
askopenfile
(
self
):
dir
,
base
=
self
.
defaultfilename
(
"open"
)
if
not
self
.
opendialog
:
...
...
@@ -508,8 +510,10 @@ class IOBinding:
def
asksavefile
(
self
):
dir
,
base
=
self
.
defaultfilename
(
"save"
)
if
not
self
.
savedialog
:
self
.
savedialog
=
tkFileDialog
.
SaveAs
(
master
=
self
.
text
,
filetypes
=
self
.
filetypes
)
self
.
savedialog
=
tkFileDialog
.
SaveAs
(
master
=
self
.
text
,
filetypes
=
self
.
filetypes
,
defaultextension
=
self
.
defaultextension
)
filename
=
self
.
savedialog
.
show
(
initialdir
=
dir
,
initialfile
=
base
)
return
filename
...
...
Lib/idlelib/NEWS.txt
View file @
b236af07
What's New in IDLE 3.3.0?
=========================
- Issue #4832: Modify IDLE to save files with .py extension by
default on Windows and OS X (Tk 8.5) as it already does with X11 Tk.
- Issue #13532, #15319: Check that arguments to sys.stdout.write are strings.
- Issue # 12510: Attempt to get certain tool tips no longer crashes IDLE.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment