summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk/Tkinter.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-10-01 17:02:49 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-10-01 17:02:49 (GMT)
commitc04f7a794ecca3c4147ce473ffa61de3d341882b (patch)
tree1000bbcb045d808655bf837ff45d9d5089e068f3 /Lib/lib-tk/Tkinter.py
parent261116234504e5a250fcb3df704b3438ebc46531 (diff)
downloadcpython-c04f7a794ecca3c4147ce473ffa61de3d341882b.zip
cpython-c04f7a794ecca3c4147ce473ffa61de3d341882b.tar.gz
cpython-c04f7a794ecca3c4147ce473ffa61de3d341882b.tar.bz2
Undo last checkin, since it duplicated the code.
Diffstat (limited to 'Lib/lib-tk/Tkinter.py')
-rw-r--r--Lib/lib-tk/Tkinter.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index e72dbe5..2b04ee0 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -2299,31 +2299,6 @@ class Listbox(Widget):
i = self.tk.call(self._w, 'index', index)
if i == 'none': return None
return getint(i)
- 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.
- To get an overview about the allowed keyword arguments
- call the method without arguments.
- Valid resource names: background, foreground,
- selectbackground, selectforeground."""
- if cnf is None and not kw:
- cnf = {}
- for x in self.tk.split(
- self.tk.call(self._w, 'itemconfigure', index)):
- cnf[x[0][1:]] = (x[0][1:],) + x[1:]
- return cnf
- if type(cnf) == StringType and not kw:
- x = self.tk.split(self.tk.call(
- self._w, 'itemconfigure', index, '-'+cnf))
- return (x[0][1:],) + x[1:]
- self.tk.call((self._w, 'itemconfigure', index) +
- self._options(cnf, kw))
- itemconfig = itemconfigure
def insert(self, index, *elements):
"""Insert ELEMENTS at INDEX."""
self.tk.call((self._w, 'insert', index) + elements)