Logo Search packages:      
Sourcecode: matplotlib version File versions

def enthought::traits::ui::editor::Editor::_update_editor (   self,
  object,
  name,
  old_value,
  new_value 
) [private]

Performs updates when the object trait changes.

Definition at line 249 of file editor.py.

00249                                                                    :
        """ Performs updates when the object trait changes.
        """
        # If the editor has gone away for some reason, disconnect and exit:
        if self.control is None:
            object.on_trait_change( self._update_editor, name, remove = True )
            return
            
        # Log the change that was made (as long as it is not for an event):
        if object.base_trait( name ).type != 'event':
            self.log_change( self.get_undo_item, object, name, 
                                                 old_value, new_value )
                                                 
        # If the change was not caused by the editor itself:
        if not self._no_update:
            # Update the editor control to reflect the current object state:                    
            self.update_editor()
        
    #---------------------------------------------------------------------------
    #  Logs a change made in the editor:    
    #---------------------------------------------------------------------------
                
    def log_change ( self, undo_factory, *undo_args ):


Generated by  Doxygen 1.6.0   Back to index