I have a menu bar in a top level window as follows
menuBar = Menu(rootWin)
menuBar.add_com mand( label='Quit', command=rootWin .quit)
configMenu = Menu(menuBar, tearoff=0)
configMenu.add_ command(label=' Left Device Raw', command=setLeft Raw)
configMenu.add_ command(label=' Right Device Raw', command=setRigh tRaw)
etc
menuBar.add_cas cade(label='Con fig', menu=configMenu )
rootWin.config( menu=menuBar)
Q1 Cannot find a way of changing the menu bars background colour. When
colour options are accepted they seem to be ignored. Is this a native look
and feel characteristic of write once run anywhere, not yet implemented or
possibly a bug.
Q2 Some of the menu options in the config menu will not always be available
depending on program state. How can individual items in such a menu be
turned to faint gey to indicate their unavailability. Also a tick mark
against an item would be useful to show the currently selected option. Is
this possible?
Regards,
John Pote
System: Win XP, Python 2.3.4
menuBar = Menu(rootWin)
menuBar.add_com mand( label='Quit', command=rootWin .quit)
configMenu = Menu(menuBar, tearoff=0)
configMenu.add_ command(label=' Left Device Raw', command=setLeft Raw)
configMenu.add_ command(label=' Right Device Raw', command=setRigh tRaw)
etc
menuBar.add_cas cade(label='Con fig', menu=configMenu )
rootWin.config( menu=menuBar)
Q1 Cannot find a way of changing the menu bars background colour. When
colour options are accepted they seem to be ignored. Is this a native look
and feel characteristic of write once run anywhere, not yet implemented or
possibly a bug.
Q2 Some of the menu options in the config menu will not always be available
depending on program state. How can individual items in such a menu be
turned to faint gey to indicate their unavailability. Also a tick mark
against an item would be useful to show the currently selected option. Is
this possible?
Regards,
John Pote
System: Win XP, Python 2.3.4
Comment