Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simuDAtor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computer Engineering
simuDAtor
Commits
798f8938
Commit
798f8938
authored
10 months ago
by
Johannes Kung
Browse files
Options
Downloads
Patches
Plain Diff
Docstrings for signal viewer properties
parent
f7f7160b
No related branches found
No related tags found
1 merge request
!44
Fixed flags
Pipeline
#133264
failed
10 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/simudator/gui/signal_viewer.py
+77
-6
77 additions, 6 deletions
src/simudator/gui/signal_viewer.py
with
77 additions
and
6 deletions
src/simudator/gui/signal_viewer.py
+
77
−
6
View file @
798f8938
...
...
@@ -99,33 +99,104 @@ class SignalViewer(QGraphicsWidget):
return
QRectF
(
0
-
margin
,
0
-
margin
,
width
+
margin
,
height
+
margin
)
def
outline_width
(
self
)
->
float
:
"""
Return the outline pen width.
Returns
-------
float
Outline pen width.
"""
return
self
.
_outline_width
def
set_outline_width
(
self
,
width
:
float
)
->
None
:
"""
Set the outline pen width.
Parameters
----------
width : float
Outline pen width.
"""
self
.
_outline_width
=
width
def
outline
(
self
)
->
QColor
:
def
outline
(
self
)
->
QBrush
:
"""
Return the outline brush used to create the outline pen.
Returns
-------
QBrush
Outline brush.
"""
return
self
.
_outline
def
set_outline
(
self
,
color
:
QColor
)
->
None
:
self
.
_outline
=
color
def
set_outline
(
self
,
brush
:
QBrush
)
->
None
:
"""
Set the outline brush used to create the outline pen.
Parameters
----------
brush : QBrush
Outline brush.
"""
self
.
_outline
=
brush
def
background
(
self
)
->
QBrush
:
"""
Return the bursh used for filling the background.
def
background
(
self
)
->
QColor
:
Returns
-------
QBrush
Background brush.
"""
return
self
.
_background
def
set_background
(
self
,
color
:
QColor
)
->
None
:
self
.
_background
=
color
def
set_background
(
self
,
brush
:
QBrush
)
->
None
:
"""
Set the bursh used for filling the background.
Parameters
----------
brush : QBrush
Background brush.
"""
self
.
_background
=
brush
def
text_color
(
self
)
->
QColor
:
"""
Return the color used for text.
Returns
-------
QColor
Text color.
"""
return
self
.
_text_color
def
set_text_color
(
self
,
color
:
QColor
)
->
None
:
"""
Set the color used for text.
Parameters
----------
color : QColor
Text color.
"""
self
.
_text_color
=
color
def
text_font
(
self
)
->
QFont
:
"""
Return the font used for text.
Returns
-------
QFont
Text font.
"""
return
self
.
_text_font
def
set_text_font
(
self
,
font
:
QFont
)
->
None
:
"""
Set the font used for text.
Parameters
----------
font : QFont
Text font.
"""
self
.
_text_font
=
font
outline_width
=
Property
(
float
,
outline_width
,
set_outline_width
)
...
...
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