diff options
Diffstat (limited to 'examples/widgets/tutorials/modelview/2_formatting.py')
-rw-r--r-- | examples/widgets/tutorials/modelview/2_formatting.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/widgets/tutorials/modelview/2_formatting.py b/examples/widgets/tutorials/modelview/2_formatting.py index ac6c7e5dd..6748d5c93 100644 --- a/examples/widgets/tutorials/modelview/2_formatting.py +++ b/examples/widgets/tutorials/modelview/2_formatting.py @@ -57,6 +57,7 @@ class MyModel(QAbstractTableModel): def columnCount(self, parent=None): return 3 +#! [1] def data(self, index, role=Qt.DisplayRole): row = index.row() col = index.column() @@ -89,6 +90,7 @@ class MyModel(QAbstractTableModel): return Qt.Checked return None +#! [1] if __name__ == '__main__': |