Pmw menubutton enable/disable

Markus von Ehr markus.vonehr at ipm.fhg.de
Fri Sep 19 09:20:57 EDT 2003


Hi,

is it possible to enable/disable a menubutton?

My code is like this:

menuBar = Pmw.MenuBar(root, hull_relief = 'ridge', hull_borderwidth = 1)

menuBar.pack(side=TOP, fill = 'x')
menuBar.addmenu('Help', 'help')
menuBar.addmenuitem('Help', 'command', 'Help About', command = 
self.About, label = 'About', state=DISABLED)



now my menubutton is disabled.
Anyone knows how to enable it?

Thanks,

Markus





More information about the Python-list mailing list