

def update_editor(self):
    ' Updates the editor when the object trait changes externally to the\n            editor.\n        '
    font = self.factory.to_qt4_font(font)
    self._bold = font.bold()
    self._italic = font.italic()
    self._facename.setCurrentFont(font)
    try:
        idx = PointSizes.index(str(font.pointSize()))
    except ValueError:
        idx = PointSizes.index('9')
    self._point_size.setCurrentIndex(idx)

dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/font_editor.py CustomFontEditor.update_editor/VarMisuse@20/56 `self`->`font`