Tell me how to make an item in the Listbox widget static, inactive. For example, as in Button ATTRIBUTE state [NORMAL, DISABLED]
. Listbox also has this attribute, but something does not work ... :(
- Is it a QT4 or TKinter? - Vorlog
- Tkinter ... - Xyanight
- I am not strong in Tkinter, but maybe here you will find the answer: Widgets (graphic objects) and their properties. Part 1. Lesson 2 . Here are all the properties: Listbox - Vorlog
|
1 answer
from Tkinter import * l = Listbox(parent) l.configure(state=DISABLED) l.configure(state=NORMAL)
Or l.config(state=
Well, if you need to ban a separate list item, it seems, alas. There are only four colors in the list of valid options for .itemconfigure: background, foreground, selectbackground, selectforeground.
|