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
60d58406
Commit
60d58406
authored
Oct 28, 2007
by
Kurt B. Kaiser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add confirmation dialog before printing. Patch 1717170 Tal Einat.
parent
ea684743
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
Lib/idlelib/IOBinding.py
Lib/idlelib/IOBinding.py
+11
-1
Lib/idlelib/NEWS.txt
Lib/idlelib/NEWS.txt
+2
-0
No files found.
Lib/idlelib/IOBinding.py
View file @
60d58406
...
...
@@ -465,13 +465,23 @@ class IOBinding:
self
.
text
.
insert
(
"end-1c"
,
"
\
n
"
)
def
print_window
(
self
,
event
):
m
=
tkMessageBox
.
Message
(
title
=
"Print"
,
message
=
"Print to Default Printer"
,
icon
=
tkMessageBox
.
QUESTION
,
type
=
tkMessageBox
.
OKCANCEL
,
default
=
tkMessageBox
.
OK
,
master
=
self
.
text
)
reply
=
m
.
show
()
if
reply
!=
tkMessageBox
.
OK
:
self
.
text
.
focus_set
()
return
"break"
tempfilename
=
None
saved
=
self
.
get_saved
()
if
saved
:
filename
=
self
.
filename
# shell undo is reset after every prompt, looks saved, probably isn't
if
not
saved
or
filename
is
None
:
# XXX KBK 08Jun03 Wouldn't it be better to ask the user to save?
(
tfd
,
tempfilename
)
=
tempfile
.
mkstemp
(
prefix
=
'IDLE_tmp_'
)
filename
=
tempfilename
os
.
close
(
tfd
)
...
...
Lib/idlelib/NEWS.txt
View file @
60d58406
...
...
@@ -3,6 +3,8 @@ What's New in IDLE 2.6a1?
*Release date: XX-XXX-200X*
- Add confirmation dialog before printing. Patch 1717170 Tal Einat.
- Show paste position if > 80 col. Patch 1659326 Tal Einat.
- Update cursor color without restarting. Patch 1725576 Tal Einat.
...
...
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