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
0a5deb84
Commit
0a5deb84
authored
4 years ago
by
morkolai
Browse files
Options
Downloads
Patches
Plain Diff
#96 Modul styres nå av config-fil
parent
271687d4
Loading
Loading
1 merge request
!57
#96 Telefonliste & Fiks til høyde på tabeller (rundt oppløsning)
Pipeline
#83830
failed with stages
in 2 minutes and 24 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
soitool/modules/config/module_phonebook.json
+7
-0
7 additions, 0 deletions
soitool/modules/config/module_phonebook.json
soitool/modules/module_phonebook.py
+5
-7
5 additions, 7 deletions
soitool/modules/module_phonebook.py
with
12 additions
and
7 deletions
soitool/modules/config/module_phonebook.json
0 → 100644
+
7
−
0
View file @
0a5deb84
{
"Funksjon"
:
true
,
"Telefon"
:
true
,
"FDN"
:
false
,
"Iridium"
:
false
,
"E-post"
:
false
}
This diff is collapsed.
Click to expand it.
soitool/modules/module_phonebook.py
+
5
−
7
View file @
0a5deb84
"""
SOI module for functions and associated contact informations.
"""
from
json
import
load
from
PySide2.QtWidgets
import
(
QWidget
,
QDialog
,
...
...
@@ -119,13 +120,10 @@ class PhonebookModule(ModuleBase, QWidget, metaclass=Meta):
ModuleBase
.
__init__
(
self
)
# Table structure
self
.
selected_columns
=
{
"
Funksjon
"
:
True
,
"
Telefon
"
:
True
,
"
FDN
"
:
False
,
"
Iridium
"
:
False
,
"
E-post
"
:
False
,
}
with
open
(
"
soitool/modules/config/module_phonebook.json
"
,
"
r
"
)
as
config_file
:
self
.
selected_columns
=
load
(
config_file
)
# Header
self
.
header
=
QLabel
(
"
Telefonliste
"
)
...
...
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