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
97aeca15
Kaydet (Commit)
97aeca15
authored
Tem 07, 1994
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added _exit and register as Tcl command exit. Micro lay-out fix.
üst
d308e2ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
Tkinter.py
Lib/lib-tk/Tkinter.py
+6
-2
Tkinter.py
Lib/tkinter/Tkinter.py
+6
-2
No files found.
Lib/lib-tk/Tkinter.py
Dosyayı görüntüle @
97aeca15
...
...
@@ -46,6 +46,10 @@ _default_root = None
def
_tkerror
(
err
):
pass
def
_exit
(
code
=
'0'
):
import
sys
sys
.
exit
(
getint
(
code
))
_varnum
=
0
class
Variable
:
def
__init__
(
self
,
master
=
None
):
...
...
@@ -529,6 +533,7 @@ class Tk(Misc, Wm):
if
baseName
[
-
3
:]
==
'.py'
:
baseName
=
baseName
[:
-
3
]
self
.
tk
=
tkinter
.
create
(
screenName
,
baseName
,
className
)
self
.
tk
.
createcommand
(
'tkerror'
,
_tkerror
)
self
.
tk
.
createcommand
(
'exit'
,
_exit
)
def
destroy
(
self
):
for
c
in
self
.
children
.
values
():
c
.
destroy
()
## del self.master.children[self._name]
...
...
@@ -1078,8 +1083,7 @@ class Text(Widget):
def
tag_delete
(
self
,
*
tagNames
):
apply
(
self
.
tk
.
call
,
(
self
.
_w
,
'tag'
,
'delete'
)
+
tagNames
)
def
tag_lower
(
self
,
tagName
,
belowThis
=
None
):
self
.
tk
.
call
(
self
.
_w
,
'tag'
,
'lower'
,
tagName
,
belowThis
)
self
.
tk
.
call
(
self
.
_w
,
'tag'
,
'lower'
,
tagName
,
belowThis
)
def
tag_names
(
self
,
index
=
None
):
return
self
.
tk
.
splitlist
(
self
.
tk
.
call
(
self
.
_w
,
'tag'
,
'names'
,
index
))
...
...
Lib/tkinter/Tkinter.py
Dosyayı görüntüle @
97aeca15
...
...
@@ -46,6 +46,10 @@ _default_root = None
def
_tkerror
(
err
):
pass
def
_exit
(
code
=
'0'
):
import
sys
sys
.
exit
(
getint
(
code
))
_varnum
=
0
class
Variable
:
def
__init__
(
self
,
master
=
None
):
...
...
@@ -529,6 +533,7 @@ class Tk(Misc, Wm):
if
baseName
[
-
3
:]
==
'.py'
:
baseName
=
baseName
[:
-
3
]
self
.
tk
=
tkinter
.
create
(
screenName
,
baseName
,
className
)
self
.
tk
.
createcommand
(
'tkerror'
,
_tkerror
)
self
.
tk
.
createcommand
(
'exit'
,
_exit
)
def
destroy
(
self
):
for
c
in
self
.
children
.
values
():
c
.
destroy
()
## del self.master.children[self._name]
...
...
@@ -1078,8 +1083,7 @@ class Text(Widget):
def
tag_delete
(
self
,
*
tagNames
):
apply
(
self
.
tk
.
call
,
(
self
.
_w
,
'tag'
,
'delete'
)
+
tagNames
)
def
tag_lower
(
self
,
tagName
,
belowThis
=
None
):
self
.
tk
.
call
(
self
.
_w
,
'tag'
,
'lower'
,
tagName
,
belowThis
)
self
.
tk
.
call
(
self
.
_w
,
'tag'
,
'lower'
,
tagName
,
belowThis
)
def
tag_names
(
self
,
index
=
None
):
return
self
.
tk
.
splitlist
(
self
.
tk
.
call
(
self
.
_w
,
'tag'
,
'names'
,
index
))
...
...
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