Reputation: 71
I am looking for a way to disable the direct editing of the Pmw.ComboBox
widget. Widget configuration using the entry_field=DISABLED
results with a grayed out and unusable ComboBox. Here is my code, which allows for direct editing of the menu:
dropdownQOS = Pmw.ComboBox(parentWindow,
label_text = 'QOS: ',
labelpos = 'w',
selectioncommand = differentiateSettings,
scrolledlist_items = ("Selection1", "Selection2", "Selection3"),
listheight = 57, entry_width = 43)
dropdownQOS.selectitem(0, setentry = 1)
dropdownQOS.pack(anchor = 'n',fill = 'x', expand = 1, padx = 50, pady=5)
Upvotes: 1
Views: 1149
Reputation: 413
Check out this page: http://www.gossamer-threads.com/lists/python/python/63351
entryfield_entry_state=DISABLED
worked for me too to disable the combobox' entry.
Upvotes: 1