2
0
mirror of https://github.com/pyqt/examples.git synced 2025-08-28 20:37:39 +00:00

missing parentheses

This commit is contained in:
Rafale25 2021-08-05 20:20:35 +02:00 committed by GitHub
parent 7069034401
commit f56b941fc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ class TableModel(QAbstractTableModel):
return QVariant()
# What's the value of the cell at the given index?
return rows[index.row()][index.column()]
def headerData(self, section, orientation, role:
def headerData(self, section, orientation, role):
if role != Qt.DisplayRole or orientation != Qt.Horizontal:
return QVariant()
# What's the header for the given column?