[Python-checkins] CVS: python/dist/src/Lib/lib-tk Tix.py,1.5,1.6
Martin v. L?wis
loewis@users.sourceforge.net
Sun, 25 Nov 2001 06:50:58 -0800
Update of /cvsroot/python/python/dist/src/Lib/lib-tk
In directory usw-pr-cvs1:/tmp/cvs-serv28416/Lib/lib-tk
Modified Files:
Tix.py
Log Message:
Properly set static options for tixBalloon and tixResizeHandle.
Expose Tix.ResizeHandle.{detach_widget,hide,show}.
Update Tix demos.
Index: Tix.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/lib-tk/Tix.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Tix.py 2001/11/02 23:48:20 1.5
--- Tix.py 2001/11/25 14:50:55 1.6
***************
*** 490,494 ****
def __init__(self, master=None, cnf={}, **kw):
! TixWidget.__init__(self, master, 'tixBalloon', ['options'], cnf, kw)
self.subwidget_list['label'] = _dummyLabel(self, 'label',
destroy_physically=0)
--- 490,496 ----
def __init__(self, master=None, cnf={}, **kw):
! # static seem to be -installcolormap -initwait -statusbar -cursor
! static = ['options', 'installcolormap', 'initwait', 'statusbar', 'cursor']
! TixWidget.__init__(self, master, 'tixBalloon', static, cnf, kw)
self.subwidget_list['label'] = _dummyLabel(self, 'label',
destroy_physically=0)
***************
*** 1195,1203 ****
def __init__(self, master, cnf={}, **kw):
TixWidget.__init__(self, master, 'tixResizeHandle',
! ['options'], cnf, kw)
def attach_widget(self, widget):
self.tk.call(self._w, 'attachwidget', widget._w)
class ScrolledHList(TixWidget):
--- 1197,1220 ----
def __init__(self, master, cnf={}, **kw):
+ # There seems to be a Tix bug rejecting the configure method
+ # Let's try making the flags -static
+ flags = ['options', 'command', 'cursorfg', 'cursorbg',
+ 'handlesize', 'hintcolor', 'hintwidth',
+ 'x', 'y']
+ # In fact, x y height width are configurable
TixWidget.__init__(self, master, 'tixResizeHandle',
! flags, cnf, kw)
def attach_widget(self, widget):
self.tk.call(self._w, 'attachwidget', widget._w)
+
+ def detach_widget(self, widget):
+ self.tk.call(self._w, 'detachwidget', widget._w)
+
+ def hide(self, widget):
+ self.tk.call(self._w, 'hide', widget._w)
+
+ def show(self, widget):
+ self.tk.call(self._w, 'show', widget._w)
class ScrolledHList(TixWidget):