parameters: (self, number, listname)
return_statement: return True, target
docstring: moves a tool to a lower number, if possible
docstring_summary: moves a tool to a lower number, if possible
docstring_tokens: moves a tool to a lower number if possible
function: def moveup(self, number, listname):
          "moves a tool to a lower number, if possible"
          target = number - 1
          if number < 2:
              return False, target
          target = number - 1
          tt = self.getTableFromName(listname)
          t1 = tt.getTool(number).copy()
          tt.deleteTool(number)
          if target in tt.Tools.keys():
              t2 = tt.getTool(target).copy()
              tt.deleteTool(target)
              tt.setTool(number, t2)
          tt.setTool(target, t1)
          if listname == self.getCurrentTableName():
              self.saveMainLibrary()
          return True, target
function_tokens: def moveup ( self , number , listname ) : target = number - 1 if number < 2 : return False , target target = number - 1 tt = self . getTableFromName ( listname ) t1 = tt . getTool ( number ) . copy ( ) tt . deleteTool ( number ) if target in tt . Tools . keys ( ) : t2 = tt . getTool ( target ) . copy ( ) tt . deleteTool ( target ) tt . setTool ( number , t2 ) tt . setTool ( target , t1 ) if listname == self . getCurrentTableName ( ) : self . saveMainLibrary ( ) return True , target