summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/Tkinter.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/tkinter/Tkinter.py')
-rwxr-xr-xLib/tkinter/Tkinter.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/tkinter/Tkinter.py b/Lib/tkinter/Tkinter.py
index 1703395..aace39a 100755
--- a/Lib/tkinter/Tkinter.py
+++ b/Lib/tkinter/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'))