Next / Previous / Contents / Shipman's homepage

13.5. NamePicker.__pickListHandler(): Somebody clicked on a color

This method is called when the user clicks on a color name in the PickList. That object passes us that color as a Color instance, and we pass it on to our callback.

# - - -   N a m e P i c k e r . _ _ p i c k L i s t H a n d l e r

    def __pickListHandler ( self, color ):
        """Handler for self.__pickList.
        if  self.__callback is not None:
            self.__callback ( color )