Commits

Guido van Rossum  committed 46df672

add Listbox.activate()

  • Participants
  • Parent commits 6491bd2
  • Branches legacy-trunk

Comments (0)

Files changed (2)

File Lib/lib-tk/Tkinter.py

 			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'))

File Lib/tkinter/Tkinter.py

 			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'))