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
062759f1
Kaydet (Commit)
062759f1
authored
Tem 31, 2015
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue 24759: Gracefull exit Idle if ttk import fails.
üst
5ccc18f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
PyShell.py
Lib/idlelib/PyShell.py
+10
-0
No files found.
Lib/idlelib/PyShell.py
Dosyayı görüntüle @
062759f1
...
...
@@ -23,6 +23,16 @@ except ImportError:
"Your Python may not be configured for Tk. **"
,
file
=
sys
.
__stderr__
)
sys
.
exit
(
1
)
import
tkinter.messagebox
as
tkMessageBox
try
:
from
tkinter
import
ttk
except
:
root
=
Tk
()
root
.
withdraw
()
tkMessageBox
.
showerror
(
"Idle Cannot Start"
,
"Idle now requires the tkinter.ttk module from tcl/tk 8.5+.
\n
"
+
"It found tk
%
s and no ttk."
%
TkVersion
,
parent
=
root
)
sys
.
exit
(
1
)
from
idlelib.EditorWindow
import
EditorWindow
,
fixwordbreaks
from
idlelib.FileList
import
FileList
...
...
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