

def init(self, parent):
    ' Finishes initializing the editor by creating the underlying toolkit\n            widget.\n        '
    self.control = QtGui.QWidget()
    layout = QtGui.QVBoxLayout(self.control)
    layout.setContentsMargins(0, 0, 0, 0)
    self._font = font = QtGui.QLineEdit(self.str_value)
    QtCore.QObject.connect(font, QtCore.SIGNAL('editingFinished()'), self.update_object)
    layout.addWidget(font)
    layout2 = QtGui.QHBoxLayout()
    self._facename = control = QtGui.QFontComboBox()
    control.setEditable(False)
    QtCore.QObject.connect(control, QtCore.SIGNAL('currentFontChanged(QFont)'), self.update_object_parts)
    layout2.addWidget(control)
    self._point_size = control = QtGui.QComboBox()
    control.addItems(PointSizes)
    QtCore.QObject.connect(control, QtCore.SIGNAL('currentIndexChanged(int)'), self.update_object_parts)
    layout2.addWidget(control)
    self._bold = self._italic = False
    layout.addLayout(layout2)

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