Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
soitool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
af646b2c
Commit
af646b2c
authored
5 years ago
by
Thomas Holene Løkkeborg
Browse files
Options
Downloads
Patches
Plain Diff
Fikset maks tegn per linje til 79
Var satt til 100 før
parent
190bb2fe
No related branches found
No related tags found
1 merge request
!3
#18 MVP brukergrensesnitt - inline edit view
Pipeline
#71047
failed
5 years ago
Stage: lint
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/.pylintrc
+1
-1
1 addition, 1 deletion
scripts/.pylintrc
soitool/main_window.py
+8
-3
8 additions, 3 deletions
soitool/main_window.py
with
9 additions
and
4 deletions
scripts/.pylintrc
+
1
−
1
View file @
af646b2c
...
...
@@ -285,7 +285,7 @@ indent-after-paren=4
indent-string=' '
# Maximum number of characters on a single line.
max-line-length=
100
max-line-length=
79
# Maximum number of lines in a module.
max-module-lines=1000
...
...
This diff is collapsed.
Click to expand it.
soitool/main_window.py
+
8
−
3
View file @
af646b2c
...
...
@@ -141,8 +141,12 @@ class ViewArea(QWidget):
self
.
scene
=
QGraphicsScene
()
self
.
scene
.
setSceneRect
(
QRectF
(
0
,
0
,
self
.
WIDTH
,
self
.
HEIGHT
))
self
.
scene
.
addRect
(
0
,
0
,
self
.
WIDTH
,
self
.
HEIGHT
)
self
.
scene
.
addRect
(
self
.
PADDING
,
self
.
PADDING
,
self
.
CONTENT_WIDTH
,
self
.
CONTENT_HEIGHT
)
self
.
scene
.
addRect
(
self
.
PADDING
,
self
.
PADDING
,
self
.
CONTENT_WIDTH
,
self
.
HEADER_HEIGHT
)
self
.
scene
.
addRect
(
self
.
PADDING
,
self
.
PADDING
,
self
.
CONTENT_WIDTH
,
self
.
CONTENT_HEIGHT
)
self
.
scene
.
addRect
(
self
.
PADDING
,
self
.
PADDING
,
self
.
CONTENT_WIDTH
,
self
.
CONTENT_HEIGHT
)
self
.
scene
.
addRect
(
self
.
PADDING
,
self
.
PADDING
,
self
.
CONTENT_WIDTH
,
self
.
HEADER_HEIGHT
)
self
.
view
=
QGraphicsView
(
self
.
scene
)
self
.
view
.
scale
(
0.50
,
0.50
)
...
...
@@ -155,7 +159,8 @@ class ViewArea(QWidget):
def
launch_auto_zoom
(
self
):
"""
Zoom in a regular interval.
Used to demonstrate zooming only, should be removed once the project matures.
Used to demonstrate zooming only, should be removed once the project
matures.
"""
def
do_on_timeout
():
self
.
zoom
(
1
/
1.00005
)
...
...
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