Argh! Where is this option in Tk?

bowman bowman at montana.com
Thu Sep 2 22:53:39 EDT 1999


Michel Orengo wrote:
> 
> Does anyone know how to inactivate a menu in Tk (via Tkinter)?

set 'state' to disabled. The other choices are 'normal' and 'active'.
You can also use entryconfigure to disable just one label at a given
index, rather than the whole menu. 

fileMenu['state'] = 'disabled'
fileMenu.configure(state='disabled')

fileMenu.entryconfigure(3, state='disabled')


-- 
Bear Technology  Making Montana safe for Grizzlies

http://people.montana.com/~bowman/




More information about the Python-list mailing list