summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-10-11 17:41:00 (GMT)
committerGuido van Rossum <guido@python.org>1995-10-11 17:41:00 (GMT)
commit46f92d2ebab2830d69277121cffef690679ed268 (patch)
tree93b01392513d44b99c8cee500f13e30c20e4fd3a /Lib/lib-tk
parentb61b28b07d573cc144ab96d0e23d80f71cc9b3d9 (diff)
downloadcpython-46f92d2ebab2830d69277121cffef690679ed268.zip
cpython-46f92d2ebab2830d69277121cffef690679ed268.tar.gz
cpython-46f92d2ebab2830d69277121cffef690679ed268.tar.bz2
add Listbox.activate()
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r--Lib/lib-tk/Tkinter.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index 1703395..aace39a 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -1031,6 +1031,8 @@ class Listbox(Widget):
self['selectmode'] = 'single'
else:
self.tk.call('tk_listboxSingleSelect', self._w)
+ def activate(self, index):
+ self.tk.call(self._w, 'activate', index)
def curselection(self):
return self.tk.splitlist(self.tk.call(
self._w, 'curselection'))