Next / Previous / Contents / Shipman's homepage

16.8. ColorReadout.__radioHandler(): Radiobutton state change handler

When the user changes the state of the radiobuttons, we need to call the external callback function.

# - - -   C o l o r R e a d o u t . _ _ r a d i o H a n d l e r

    def __radioHandler ( self ):
        """Handler for a change between text and background color.
        if  self.__callback is not None:
            self.__callback ( )