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
22ba01ea
Kaydet (Commit)
22ba01ea
authored
Agu 16, 2016
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #27611: Don't import volatile attribute.
üst
76aa1fb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
tix.py
Lib/tkinter/tix.py
+4
-3
No files found.
Lib/tkinter/tix.py
Dosyayı görüntüle @
22ba01ea
...
@@ -26,8 +26,10 @@
...
@@ -26,8 +26,10 @@
# appreciate the advantages.
# appreciate the advantages.
#
#
import
os
import
tkinter
from
tkinter
import
*
from
tkinter
import
*
from
tkinter
import
_cnfmerge
,
_default_root
from
tkinter
import
_cnfmerge
# WARNING - TkVersion is a limited precision floating point number
# WARNING - TkVersion is a limited precision floating point number
if
TkVersion
<
3.999
:
if
TkVersion
<
3.999
:
...
@@ -72,7 +74,6 @@ TCL_ALL_EVENTS = 0
...
@@ -72,7 +74,6 @@ TCL_ALL_EVENTS = 0
# BEWARE - this is implemented by copying some code from the Widget class
# BEWARE - this is implemented by copying some code from the Widget class
# in Tkinter (to override Widget initialization) and is therefore
# in Tkinter (to override Widget initialization) and is therefore
# liable to break.
# liable to break.
import
tkinter
,
os
# Could probably add this to Tkinter.Misc
# Could probably add this to Tkinter.Misc
class
tixCommand
:
class
tixCommand
:
...
@@ -476,7 +477,7 @@ class DisplayStyle:
...
@@ -476,7 +477,7 @@ class DisplayStyle:
(multiple) Display Items"""
(multiple) Display Items"""
def
__init__
(
self
,
itemtype
,
cnf
=
{},
**
kw
):
def
__init__
(
self
,
itemtype
,
cnf
=
{},
**
kw
):
master
=
_default_root
# global from Tkinter
master
=
tkinter
.
_default_root
# global from Tkinter
if
not
master
and
'refwindow'
in
cnf
:
master
=
cnf
[
'refwindow'
]
if
not
master
and
'refwindow'
in
cnf
:
master
=
cnf
[
'refwindow'
]
elif
not
master
and
'refwindow'
in
kw
:
master
=
kw
[
'refwindow'
]
elif
not
master
and
'refwindow'
in
kw
:
master
=
kw
[
'refwindow'
]
elif
not
master
:
raise
RuntimeError
(
"Too early to create display style: no root window"
)
elif
not
master
:
raise
RuntimeError
(
"Too early to create display style: no root window"
)
...
...
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