Adds to the help menu a subtopic “Adjust a color”
along with its cascade. This is structurally similar to
Section 12.3, “MenuBar.__cascadeNamePicker()”.
# - - - M e n u B a r . _ _ c a s c a d e A d j u s t e r
def __cascadeAdjuster ( self, menu ):
"""Add the 'adjust' choice and cascade to the menu.
[ menu is a Menu ->
menu := menu with a cascade added about adjusting
colors ]
"""
#-- 1 --
# [ menu := menu with a new cascade added
# select := that cascade ]
select = Menu ( menu )
menu.add_cascade ( menu=select,
label="Adjusting a color" )
For the methods that created the sub-cascades, see
Section 12.7, “MenuBar.__helpReadout()”,
Section 12.8, “MenuBar.__helpModelSelector()”,
Section 12.9, “MenuBar.__helpHSV()”,
Section 12.10, “MenuBar.__helpRGB()”,
Section 12.11, “MenuBar.__helpCMY()”, and
Section 12.12, “MenuBar.__helpSliders()”.
#-- 2 --
# [ select := select with pop-ups added that relate to
# color adjustment ]
select.add_command ( label='Selecting background or text color',
command=self.__helpReadout )
select.add_command ( label='Color models and color space',
command=self.__helpModelSelector )
select.add_command ( label='The HSV color model',
command=self.__helpHSV )
select.add_command ( label='The RGB color model',
command=self.__helpRGB )
select.add_command ( label='The CMY color model',
command=self.__helpCMY )
select.add_command ( label='Using the color sliders',
command=self.__helpSliders )