parameters: (self)
return_statement: return indexes[0].row()
docstring: returns row index of selected index
docstring_summary: returns row index of selected index
docstring_tokens: returns row index of selected index
function: def currentIndex(self):
          """ returns row index of selected index """
          sel = self.viewIndexes.selectionModel()
          indexes = sel.selectedRows()
          if len(indexes) == 0:
              QMessageBox.information(self, self.tr("DB Manager"), self.tr("No indices were selected."))
              return -1
          return indexes[0].row()
function_tokens: def currentIndex ( self ) : sel = self . viewIndexes . selectionModel ( ) indexes = sel . selectedRows ( ) if len ( indexes ) == 0 : QMessageBox . information ( self , self . tr ( "DB Manager" ) , self . tr ( "No indices were selected." ) ) return - 1 return indexes [ 0 ] . row ( )