def popup_editor(self):
        fnt, ok = QtGui.QFontDialog.getFont(self.factory.to_qt4_font(self),
                                            self.control)

        if ok:
            self.value = self.factory.from_qt4_font(fnt)
            self.update_editor()

    #---------------------------------------------------------------------------
    #  Updates the editor when the object trait changes external to the editor:
    #---------------------------------------------------------------------------
Application.register() registers a new command
dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/font_editor.py/SimpleFontEditor.popup_editor--crossover with--dataset/ETHPy150Open sdispater/cleo/tests/test_application.py/ApplicationTest.test_register