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
5e116551
Kaydet (Commit)
5e116551
authored
Ara 26, 2013
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #20067: Tkinter variables now work when wantobjects is false.
üst
dfd21d35
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
Tkinter.py
Lib/lib-tk/Tkinter.py
+4
-2
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/lib-tk/Tkinter.py
Dosyayı görüntüle @
5e116551
...
@@ -223,11 +223,13 @@ class Variable:
...
@@ -223,11 +223,13 @@ class Variable:
_varnum
+=
1
_varnum
+=
1
if
value
is
not
None
:
if
value
is
not
None
:
self
.
set
(
value
)
self
.
set
(
value
)
elif
not
self
.
_tk
.
call
(
"info"
,
"exists"
,
self
.
_name
):
elif
not
self
.
_tk
.
getboolean
(
self
.
_tk
.
call
(
"info"
,
"exists"
,
self
.
_name
)
):
self
.
set
(
self
.
_default
)
self
.
set
(
self
.
_default
)
def
__del__
(
self
):
def
__del__
(
self
):
"""Unset the variable in Tcl."""
"""Unset the variable in Tcl."""
self
.
_tk
.
globalunsetvar
(
self
.
_name
)
if
(
self
.
_tk
is
not
None
and
self
.
_tk
.
getboolean
(
self
.
_tk
.
call
(
"info"
,
"exists"
,
self
.
_name
))):
self
.
_tk
.
globalunsetvar
(
self
.
_name
)
def
__str__
(
self
):
def
__str__
(
self
):
"""Return the name of the variable in Tcl."""
"""Return the name of the variable in Tcl."""
return
self
.
_name
return
self
.
_name
...
...
Misc/NEWS
Dosyayı görüntüle @
5e116551
...
@@ -27,6 +27,8 @@ Core and Builtins
...
@@ -27,6 +27,8 @@ Core and Builtins
Library
Library
-------
-------
- Issue #20067: Tkinter variables now work when wantobjects is false.
- Issue #19020: Tkinter now uses splitlist() instead of split() in configure
- Issue #19020: Tkinter now uses splitlist() instead of split() in configure
methods.
methods.
...
...
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