Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
soitool
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bachelor-paa-bittet
soitool
Commits
30810ee9
Commit
30810ee9
authored
4 years ago
by
Anders H. Rebner
Browse files
Options
Downloads
Patches
Plain Diff
#149 Småjusteringer
parent
0a201a26
No related branches found
Branches containing commit
No related tags found
1 merge request
!86
#149 Fjern size-parameter
Pipeline
#83839
passed with stages
in 2 minutes and 46 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
soitool/modules/code_table_base.py
+1
-1
1 addition, 1 deletion
soitool/modules/code_table_base.py
soitool/modules/module_table.py
+1
-3
1 addition, 3 deletions
soitool/modules/module_table.py
with
2 additions
and
4 deletions
soitool/modules/code_table_base.py
+
1
−
1
View file @
30810ee9
...
...
@@ -48,7 +48,7 @@ class CodeTableBase(ModuleBase, QTableWidget, metaclass=Meta):
self
,
rows
=
False
,
columns
=
False
,
has_headline
=
True
,
)
)
# If parameter
s 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'
...
...
This diff is collapsed.
Click to expand it.
soitool/modules/module_table.py
+
1
−
3
View file @
30810ee9
...
...
@@ -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
content
s
.
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
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment