Skip to content

Commit

Permalink
STY: update some drawing line comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nstelter-slac committed Apr 12, 2024
1 parent 6d50787 commit 101a07e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pydm/widgets/drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def alarm_severity_changed(self, new_alarm_severity):

class PyDMDrawingLineBase(PyDMDrawing, new_properties=_penRuleProperties):
"""
A base class for single poly line widgets.
A base class for single and poly line widgets.
This class inherits from PyDMDrawing.
Parameters
Expand All @@ -468,20 +468,18 @@ class PyDMDrawingLineBase(PyDMDrawing, new_properties=_penRuleProperties):

def __init__(self, parent=None, init_channel=None):
super(PyDMDrawingLineBase, self).__init__(parent, init_channel)

self.penStyle = Qt.SolidLine
self.penWidth = 1

self._arrow_size = 6 # 6 is arbitrary size that looked good for default, not in any specific 'units'
self._arrow_end_point_selection = False
self._arrow_start_point_selection = False
self._arrow_mid_point_selection = False
self._arrow_mid_point_flipped = False
self._arrow_size = 6

@Property(int)
def arrowSize(self):
"""
If True, an arrow will be drawn at the end of the line.
Size to render line arrows.
Returns
-------
Expand Down

0 comments on commit 101a07e

Please sign in to comment.