summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-05-31 20:51:31 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-05-31 20:51:31 (GMT)
commitebb41907098acab04f0ed2165dca63c2b2264ced (patch)
treea2903abc2ab690b26ef9e1d7c402c30889a6af28 /Lib/lib-tk
parentab199622905b2621b2ad9abcb324fb5f124cc12f (diff)
downloadcpython-ebb41907098acab04f0ed2165dca63c2b2264ced.zip
cpython-ebb41907098acab04f0ed2165dca63c2b2264ced.tar.gz
cpython-ebb41907098acab04f0ed2165dca63c2b2264ced.tar.bz2
Use string methods, remove import string
Diffstat (limited to 'Lib/lib-tk')
-rwxr-xr-xLib/lib-tk/Tix.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/lib-tk/Tix.py b/Lib/lib-tk/Tix.py
index 06e081a..3b15d6c 100755
--- a/Lib/lib-tk/Tix.py
+++ b/Lib/lib-tk/Tix.py
@@ -26,7 +26,6 @@
# appreciate the advantages.
#
-import string
from Tkinter import *
from Tkinter import _flatten, _cnfmerge, _default_root
@@ -35,7 +34,7 @@ if TkVersion < 3.999:
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
-# 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
# Some more constants (for consistency with Tkinter)
@@ -391,7 +390,7 @@ class TixSubWidget(TixWidget):
path = master._subwidget_name(name)
try:
path = path[len(master._w)+1:]
- plist = string.splitfields(path, '.')
+ plist = path.split('.')
except:
plist = []
@@ -402,7 +401,7 @@ class TixSubWidget(TixWidget):
# Ensure that the intermediate widgets exist
parent = master
for i in range(len(plist) - 1):
- n = string.joinfields(plist[:i+1], '.')
+ n = '.'.join(plist[:i+1])
try:
w = master._nametowidget(n)
parent = w