Logo Search packages:      
Sourcecode: matplotlib version File versions

def enthought::traits::ui::undo::UndoHistory::undo (   self  ) 

Undoes an operation.

Definition at line 371 of file undo.py.

00371                      :
        """ Undoes an operation.
        """
        if self.can_undo:
            self.now -= 1
            items = self.history[ self.now ]
            for i in range( len( items ) - 1, -1, -1 ):
                items[i].undo()
            if self.now == 0:
                self.undoable = False
            if self.now == (len( self.history ) - 1):
                self.redoable = True

    #---------------------------------------------------------------------------
    #  Redo an operation:
    #---------------------------------------------------------------------------

    def redo ( self ):


Generated by  Doxygen 1.6.0   Back to index