def doIt(self, args):
    self.undo = shared.undo
    self.redo = shared.redo
    shared.undo = None
    shared.redo = None
def doIt(self, args):
    self.undo = shared.undo
    self.redo = shared.redo
    shared.undo = None
    shared.redo = None