Pmw menubutton enable/disable

Markus von Ehr markus.vonehr at
Fri Sep 19 15:20:57 CEST 2003


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?



More information about the Python-list mailing list