[issue18506] DISABLEd Tkinter.Listbox still fires <<ListboxSelect>> for mouse click
Kaushik Ghose
report at bugs.python.org
Fri Jul 19 20:43:11 CEST 2013
New submission from Kaushik Ghose:
Run the script below. Clicking on the window will fire off <<ListboxSelect>> events even though the widget is disabled. Keyboard actions do not fire this event.
#-- Test file --
import Tkinter as tki
def selection_changed(event):
print 'Selection changed'
root = tki.Tk()
listbox = tki.Listbox(root, selectmode=tki.BROWSE)
listbox.pack(side='left', fill='both', expand=True)
listbox.bind('<<ListboxSelect>>', selection_changed)
listbox.config(state=tki.DISABLED)
root.mainloop()
----------
components: Tkinter
messages: 193368
nosy: kghose
priority: normal
severity: normal
status: open
title: DISABLEd Tkinter.Listbox still fires <<ListboxSelect>> for mouse click
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18506>
_______________________________________
More information about the Python-bugs-list
mailing list