[Python-checkins] python/dist/src/Lib/lib-tk Tix.py,1.10,1.11
loewis@users.sourceforge.net
loewis@users.sourceforge.net
Thu, 19 Sep 2002 01:12:58 -0700
Update of /cvsroot/python/python/dist/src/Lib/lib-tk
In directory usw-pr-cvs1:/tmp/cvs-serv23543
Modified Files:
Tix.py
Log Message:
Patch #484994: Improve PanedWindow.
Index: Tix.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/lib-tk/Tix.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** Tix.py 31 May 2002 20:51:31 -0000 1.10
--- Tix.py 19 Sep 2002 08:12:55 -0000 1.11
***************
*** 1048,1055 ****
def __init__(self, master, cnf={}, **kw):
! TixWidget.__init__(self, master, 'tixDirList', ['options'], cnf, kw)
! self.subwidget_list['hlist'] = _dummyHList(self, 'hlist')
! self.subwidget_list['shlist'] = _dummyScrolledHList(self, 'vsb')
!
def add(self, name, cnf={}, **kw):
--- 1048,1056 ----
def __init__(self, master, cnf={}, **kw):
! TixWidget.__init__(self, master, 'tixListNoteBook', ['options'], cnf, kw)
! self.subwidget_list['pane'] = _dummyPanedWindow(self, 'pane',
! destroy_physically=0)
! self.subwidget_list['hlist'] = _dummyHList(self, 'hlist')
! self.subwidget_list['shlist'] = _dummyScrolledHList(self, 'vsb')
def add(self, name, cnf={}, **kw):
***************
*** 1059,1062 ****
--- 1060,1074 ----
return self.subwidget_list[name]
+ def page(self, name):
+ return self.subwidget(name)
+
+ def pages(self):
+ # Can't call subwidgets_all directly because we don't want .nbframe
+ names = self.tk.split(self.tk.call(self._w, 'pages'))
+ ret = []
+ for x in names:
+ ret.append(self.subwidget(x))
+ return ret
+
def raise_page(self, name): # raise is a python keyword
self.tk.call(self._w, 'raise', name)
***************
*** 1594,1597 ****
--- 1606,1613 ----
def __init__(self, master, name, destroy_physically=0):
TixSubWidget.__init__(self, master, name, destroy_physically)
+
+ class _dummyPanedWindow(PanedWindow, TixSubWidget):
+ def __init__(self, master, name, destroy_physically=1):
+ TixSubWidget.__init__(self, master, name, destroy_physically)
########################