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
ebb41907
Kaydet (Commit)
ebb41907
authored
May 31, 2002
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use string methods, remove import string
üst
ab199622
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Tix.py
Lib/lib-tk/Tix.py
+3
-4
No files found.
Lib/lib-tk/Tix.py
Dosyayı görüntüle @
ebb41907
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
# appreciate the advantages.
# appreciate the advantages.
#
#
import
string
from
Tkinter
import
*
from
Tkinter
import
*
from
Tkinter
import
_flatten
,
_cnfmerge
,
_default_root
from
Tkinter
import
_flatten
,
_cnfmerge
,
_default_root
...
@@ -35,7 +34,7 @@ if TkVersion < 3.999:
...
@@ -35,7 +34,7 @@ if TkVersion < 3.999:
raise
ImportError
,
"This version of Tix.py requires Tk 4.0 or higher"
raise
ImportError
,
"This version of Tix.py requires Tk 4.0 or higher"
import
_tkinter
# If this fails your Python may not be configured for Tk
import
_tkinter
# If this fails your Python may not be configured for Tk
# TixVersion =
string.atof
(tkinter.TIX_VERSION) # If this fails your Python may not be configured for Tix
# TixVersion =
float
(tkinter.TIX_VERSION) # If this fails your Python may not be configured for Tix
# WARNING - TixVersion is a limited precision floating point number
# WARNING - TixVersion is a limited precision floating point number
# Some more constants (for consistency with Tkinter)
# Some more constants (for consistency with Tkinter)
...
@@ -391,7 +390,7 @@ class TixSubWidget(TixWidget):
...
@@ -391,7 +390,7 @@ class TixSubWidget(TixWidget):
path
=
master
.
_subwidget_name
(
name
)
path
=
master
.
_subwidget_name
(
name
)
try
:
try
:
path
=
path
[
len
(
master
.
_w
)
+
1
:]
path
=
path
[
len
(
master
.
_w
)
+
1
:]
plist
=
string
.
splitfields
(
path
,
'.'
)
plist
=
path
.
split
(
'.'
)
except
:
except
:
plist
=
[]
plist
=
[]
...
@@ -402,7 +401,7 @@ class TixSubWidget(TixWidget):
...
@@ -402,7 +401,7 @@ class TixSubWidget(TixWidget):
# Ensure that the intermediate widgets exist
# Ensure that the intermediate widgets exist
parent
=
master
parent
=
master
for
i
in
range
(
len
(
plist
)
-
1
):
for
i
in
range
(
len
(
plist
)
-
1
):
n
=
string
.
joinfields
(
plist
[:
i
+
1
],
'.'
)
n
=
'.'
.
join
(
plist
[:
i
+
1
]
)
try
:
try
:
w
=
master
.
_nametowidget
(
n
)
w
=
master
.
_nametowidget
(
n
)
parent
=
w
parent
=
w
...
...
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