class Listbox: add itemcget, to satisfy SF patch #457713.
authorGuido van Rossum <guido@python.org>
Wed, 5 Sep 2001 19:29:56 +0000 (19:29 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 5 Sep 2001 19:29:56 +0000 (19:29 +0000)
Fix up docstring for itemconfigure.

Lib/lib-tk/Tkinter.py

index a5a18c44543d2c194166d860d01d7af9d8d026bc..2b04ee0fbb292ceba77faec76ee2d2489b9ea937 100644 (file)
@@ -2363,8 +2363,12 @@ class Listbox(Widget):
     def yview_scroll(self, number, what):
         """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.
+        """Configure resources of an ITEM.
 
         The values for resources are specified as keyword arguments.
         To get an overview about the allowed keyword arguments