Next / Previous / Contents / Shipman's homepage

20.6. Swatch.__fontHandler(): Handle a font change

This method is called when the user changes the font displayed in the FontSelect widget. It changes the Text widget to use that font.

# - - -   S w a t c h . _ _ f o n t H a n d l e r

    def __fontHandler ( self, font ):
        """Handler for font changes.
        self.__text["font"]  =  font