Next / Previous / Contents / Shipman's 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()