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 <rep...@bugs.python.org> <http://bugs.python.org/issue18506> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com