[Python-checkins] python/dist/src/Lib/lib-tk Tix.py,1.9,1.10

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Fri, 31 May 2002 13:51:33 -0700


Update of /cvsroot/python/python/dist/src/Lib/lib-tk
In directory usw-pr-cvs1:/tmp/cvs-serv19881/lib-tk

Modified Files:
	Tix.py 
Log Message:
Use string methods, remove import string

Index: Tix.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/lib-tk/Tix.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Tix.py	28 Mar 2002 16:26:40 -0000	1.9
--- Tix.py	31 May 2002 20:51:31 -0000	1.10
***************
*** 27,31 ****
  #
  
- import string
  from Tkinter import *
  from Tkinter import _flatten, _cnfmerge, _default_root
--- 27,30 ----
***************
*** 36,40 ****
  
  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
  # WARNING - TixVersion is a limited precision floating point number
  
--- 35,39 ----
  
  import _tkinter # If this fails your Python may not be configured for Tk
! # 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
  
***************
*** 392,396 ****
              try:
                  path = path[len(master._w)+1:]
!                 plist = string.splitfields(path, '.')
              except:
                  plist = []
--- 391,395 ----
              try:
                  path = path[len(master._w)+1:]
!                 plist = path.split('.')
              except:
                  plist = []
***************
*** 403,407 ****
              parent = master
              for i in range(len(plist) - 1):
!                 n = string.joinfields(plist[:i+1], '.')
                  try:
                      w = master._nametowidget(n)
--- 402,406 ----
              parent = master
              for i in range(len(plist) - 1):
!                 n = '.'.join(plist[:i+1])
                  try:
                      w = master._nametowidget(n)