Next / Previous / Contents / TCC Help System / NM Tech homepage

12.15. MenuBar.__cascadeFonts()

This cascade contains subtopics about font selection.

huey
# - - -   M e n u B a r . _ _ c a s c a d e F o n t s

    def __cascadeFonts ( self, menu ):
        """Add the font help cascade.

          [ menu is a Menu widget ->
              menu  :=  menu with help topics added on fonts ]
        """
        #-- 1 --
        # [ menu  :=  menu with a new cascade added
        #   select  :=  that cascade ]
        select  =  Menu ( menu )
        menu.add_cascade ( menu=select,
            label="Selecting a font" )

For subtopics, see Section 12.16, “MenuBar.__helpFontFamily(), Section 12.17, “MenuBar.__helpFontSize(), and Section 12.18, “MenuBar.__helpFontStyle().

huey
        #-- 2 --
        # [ select  :=  select with a pop-up added about font
        #               families ]
        select.add_command ( command=self.__helpFontFamily,
            label="Selecting a font family" )

        #-- 3 --
        # [ simile ]
        select.add_command ( command=self.__helpFontSize,
            label="Changing the font size" )

        #-- 4 --
        select.add_command ( command=self.__helpFontStyle,
            label="Changing font weight and slant" )