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

4.4. Application.__callback(): Observer function

This is the observer function that is called whenever any font option is changed.

fontselector
    def __callback ( self, font ):
        """Observer for font changes.

          [ sys.stdout  +:=  current font name from self.fontSelect ]
        """
        print "Change to:", self.fontSelect.getName()