Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
60d58406
Kaydet (Commit)
60d58406
authored
Eki 28, 2007
tarafından
Kurt B. Kaiser
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add confirmation dialog before printing. Patch 1717170 Tal Einat.
üst
ea684743
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
IOBinding.py
Lib/idlelib/IOBinding.py
+11
-1
NEWS.txt
Lib/idlelib/NEWS.txt
+2
-0
No files found.
Lib/idlelib/IOBinding.py
Dosyayı görüntüle @
60d58406
...
@@ -465,13 +465,23 @@ class IOBinding:
...
@@ -465,13 +465,23 @@ class IOBinding:
self
.
text
.
insert
(
"end-1c"
,
"
\n
"
)
self
.
text
.
insert
(
"end-1c"
,
"
\n
"
)
def
print_window
(
self
,
event
):
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
tempfilename
=
None
saved
=
self
.
get_saved
()
saved
=
self
.
get_saved
()
if
saved
:
if
saved
:
filename
=
self
.
filename
filename
=
self
.
filename
# shell undo is reset after every prompt, looks saved, probably isn't
# shell undo is reset after every prompt, looks saved, probably isn't
if
not
saved
or
filename
is
None
:
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_'
)
(
tfd
,
tempfilename
)
=
tempfile
.
mkstemp
(
prefix
=
'IDLE_tmp_'
)
filename
=
tempfilename
filename
=
tempfilename
os
.
close
(
tfd
)
os
.
close
(
tfd
)
...
...
Lib/idlelib/NEWS.txt
Dosyayı görüntüle @
60d58406
...
@@ -3,6 +3,8 @@ What's New in IDLE 2.6a1?
...
@@ -3,6 +3,8 @@ What's New in IDLE 2.6a1?
*Release date: XX-XXX-200X*
*Release date: XX-XXX-200X*
- Add confirmation dialog before printing. Patch 1717170 Tal Einat.
- Show paste position if > 80 col. Patch 1659326 Tal Einat.
- Show paste position if > 80 col. Patch 1659326 Tal Einat.
- Update cursor color without restarting. Patch 1725576 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