parameters: (self)
docstring: duplicated the selected tool in the current tool table
docstring_summary: duplicated the selected tool in the current tool table
docstring_tokens: duplicated the selected tool in the current tool table
function: def duplicate(self):
          """duplicated the selected tool in the current tool table"""
          item = self.form.ToolsList.selectedIndexes()[1].data()
          if item:
              number = int(item)
              listname = self.TLM.getCurrentTableName()
              success, newNum = self.TLM.duplicate(number, listname)
              if success:
                  self.loadTable(listname)
                  self.updateSelection(newNum)
function_tokens: def duplicate ( self ) : item = self . form . ToolsList . selectedIndexes ( ) [ 1 ] . data ( ) if item : number = int ( item ) listname = self . TLM . getCurrentTableName ( ) success , newNum = self . TLM . duplicate ( number , listname ) if success : self . loadTable ( listname ) self . updateSelection ( newNum )