Next / Previous / Contents / Shipman's homepage

5.10. FontSelect.addObserver(): Register a callback

This method adds another observer function to self._observerList, the list of functions to be called when the font changes.

fontselect.py
    def addObserver(self, observer):
        """Add another observer callback.
        """
        self._observerList.append(observer)