

def update_object_parts(self):
    ' Handles the user modifying one of the font components.\n        '
    fnt = self._facename.currentFont()
    fnt.setBold(self._bold)
    fnt.setItalic(self._italic)
    psz = int(self._point_size.currentText())
    fnt.setPointSize(psz)
    self.value = self.factory.from_qt4_font(fnt)
    self._font.setText(self.str_value)
    self._set_font(fnt)

dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/font_editor.py CustomFontEditor.update_object_parts/original