def headerData(self, index, orientation, role=None):
if role == Qt.DisplayRole:
if orientation == Qt.Horizontal:
columns = self.get_headers()
return _(columns[index])
if orientation == Qt.Vertical:
return str(index+1)
评论列表
文章目录