def update_object ( self, event ):
        factory    = self.factory
        self.value = factory.value

        # If there is an associated view, then display it:
        if factory.view is not None:
            self.object.edit_traits( view   = factory.view,
                                     parent = self.control )

    #---------------------------------------------------------------------------
    #  Updates the editor when the object trait changes external to the editor:
    #---------------------------------------------------------------------------
Handles the user clicking the button by setting the factory value
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/button_editor.py/SimpleEditor.update_object