Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
pymsc
Commits
092b282f
Commit
092b282f
authored
Nov 21, 2014
by
Maxime Perrotin
Browse files
Add brush (color) to the Condition boxes
parent
865f0c0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
mscgraphics/basicmscgraph/mscGraphCondition.py
View file @
092b282f
...
...
@@ -25,7 +25,7 @@
# Copyright (c) 2012 European Space Agency
#
#******************************************************************************
from
PySide.QtGui
import
QPainterPath
,
QPen
from
PySide.QtGui
import
QPainterPath
,
QPen
,
QBrush
,
QColor
from
PySide.QtCore
import
Qt
,
Slot
,
QPointF
from
msccore
import
MscCondition
...
...
@@ -135,6 +135,7 @@ class MscGraphCondition(MscGraphItem):
def
initilizeGraphics
(
self
):
self
.
color
=
Qt
.
blue
self
.
pen
=
QPen
(
self
.
color
,
1
,
Qt
.
SolidLine
,
Qt
.
RoundCap
,
Qt
.
RoundJoin
)
self
.
brush
=
QBrush
(
QColor
(
255
,
255
,
202
))
def
updateBounding
(
self
):
u
"""
...
...
@@ -160,4 +161,5 @@ class MscGraphCondition(MscGraphItem):
def
paint
(
self
,
painter
,
option
,
widget
):
painter
.
setPen
(
self
.
pen
)
painter
.
setBrush
(
self
.
brush
)
painter
.
drawPath
(
self
.
path
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment