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
43f1f68b
Kaydet (Commit)
43f1f68b
authored
Tem 09, 2007
tarafından
Ronald Oussoren
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixes IDLE crash on OSX: some versions of Tcl/Tk on OSX don't have a
console object, avoid crashing in that case.
üst
a1d47f0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
macosxSupport.py
Lib/idlelib/macosxSupport.py
+6
-1
No files found.
Lib/idlelib/macosxSupport.py
Dosyayı görüntüle @
43f1f68b
...
...
@@ -3,6 +3,7 @@ A number of function that enhance IDLE on MacOSX when it used as a normal
GUI application (as opposed to an X11 application).
"""
import
sys
import
Tkinter
def
runningAsOSXApp
():
""" Returns True iff running from the IDLE.app bundle on OSX """
...
...
@@ -23,7 +24,11 @@ def addOpenEventSupport(root, flist):
root
.
createcommand
(
"::tk::mac::OpenDocument"
,
doOpenFile
)
def
hideTkConsole
(
root
):
root
.
tk
.
call
(
'console'
,
'hide'
)
try
:
root
.
tk
.
call
(
'console'
,
'hide'
)
except
Tkinter
.
TclError
:
# Some versions of the Tk framework don't have a console object
pass
def
overrideRootMenu
(
root
,
flist
):
"""
...
...
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