Ejemplo n.º 1
0
 def _selectFontCallback(self, sender):
     oldFont = getFontDefault("PyDEFont", fallbackFont)
     newFont = sender.convertFont_(oldFont)
     if oldFont != newFont:
         self._setFont(newFont)
         setFontDefault("PyDEFont", newFont)
         self.preferencesChanged()
 def _selectFontCallback(self, sender):
     oldFont = getFontDefault("PyDEFont", fallbackFont)
     newFont = sender.convertFont_(oldFont)
     if oldFont != newFont:
         self._setFont(newFont)
         setFontDefault("PyDEFont", newFont)
         self.preferencesChanged()