mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
class Listbox: add itemcget, to satisfy SF patch #457713.
Fix up docstring for itemconfigure.
This commit is contained in:
parent
bb5a465ca9
commit
09f1ad8542
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue