[Python-checkins] CVS: python/dist/src/Lib/lib-tk Tkinter.py,1.156,1.157
Guido van Rossum
gvanrossum@users.sourceforge.net
Wed, 05 Sep 2001 12:29:58 -0700
Update of /cvsroot/python/python/dist/src/Lib/lib-tk
In directory usw-pr-cvs1:/tmp/cvs-serv23520
Modified Files:
Tkinter.py
Log Message:
class Listbox: add itemcget, to satisfy SF patch #457713.
Fix up docstring for itemconfigure.
Index: Tkinter.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/lib-tk/Tkinter.py,v
retrieving revision 1.156
retrieving revision 1.157
diff -C2 -d -r1.156 -r1.157
*** Tkinter.py 2001/09/01 18:29:55 1.156
--- Tkinter.py 2001/09/05 19:29:56 1.157
***************
*** 2364,2369 ****
"""Shift the y-view according to NUMBER which is measured in "units" or "pages" (WHAT)."""
self.tk.call(self._w, 'yview', 'scroll', number, what)
def itemconfigure(self, index, cnf=None, **kw):
! """Configure resources of an item.
The values for resources are specified as keyword arguments.
--- 2364,2373 ----
"""Shift the y-view according to NUMBER which is measured in "units" or "pages" (WHAT)."""
self.tk.call(self._w, 'yview', 'scroll', number, what)
+ def itemcget(self, index, option):
+ """Return the resource value for an ITEM and an OPTION."""
+ return self.tk.call(
+ (self._w, 'itemcget') + (index, '-'+option))
def itemconfigure(self, index, cnf=None, **kw):
! """Configure resources of an ITEM.
The values for resources are specified as keyword arguments.