Kaydet (Commit) 46f92d2e authored tarafından Guido van Rossum's avatar Guido van Rossum

add Listbox.activate()

üst b61b28b0
......@@ -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'))
......
......@@ -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'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment