I am trying to move the items up and down depending on the call made,

so I have came up with this

    def changePriority(self,*args):
        crntRow = self.listWidget.currentRow()
        total=self.listWidget.count()
        if args[0]=='up':
           if crntRow > 0 :
              crntItem= self.listWidget.takeItem(crntRow)
              self.listWidget.insertItem(crntRow+1,crntItem)
        if args[0]=='down':
           if crntRow + 1  < total:
              crntItem=self.listWidget.takeItem(crntRow)
              sel.listWidget.insertItem(crntRow-1,crntItem)
           else: print "This is the last item cannot move down further."

but everytime i make a call i get error object crntItem = self.listWidget.takenItem(crntRow) is not callable ?