Skip to content
Snippets Groups Projects
Commit 30810ee9 authored by Anders H. Rebner's avatar Anders H. Rebner
Browse files

#149 Småjusteringer

parent 0a201a26
No related branches found
No related tags found
1 merge request!86#149 Fjern size-parameter
Pipeline #83839 passed with stages
in 2 minutes and 46 seconds
......@@ -48,7 +48,7 @@ class CodeTableBase(ModuleBase, QTableWidget, metaclass=Meta):
self, rows=False, columns=False, has_headline=True,
)
)
# If parameters are None, launch settings-dialog and generate new table
# If parameter 'data' is None, launch settings-dialog
if data is None:
# Disabling pylint-error
# 'Access to member before its definition line'
......
......@@ -26,7 +26,7 @@ class TableModule(ModuleBase, QTableWidget, metaclass=Meta):
By default, the widget initializes as an empty START_ROWS * START_COLUMNS
table. If parameter 'data' is given, the table initializes based on the
contents.
content.
'data' is a 2D list where data[x][y] represents row x, column y.
The widget does not use more room than needed, and resizes dynamically.
......@@ -75,8 +75,6 @@ class TableModule(ModuleBase, QTableWidget, metaclass=Meta):
item = QTableWidgetItem(data[i][j])
self.setItem(i, j, item)
self.resizeColumnsToContents()
self.resizeRowsToContents()
resize_table(self)
self.cellChanged.connect(lambda: resize_table(self))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment