Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas VINCENT <[email protected]>
  • Loading branch information
vallsv and t20100 authored Dec 15, 2023
1 parent f065c8c commit a1ea173
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/silx/gui/plot/items/roi.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def _updatedStyle(self, event, style: items.CurveStyle):
self.__shape.setColor(style.getColor())
self.__shape.setLineStyle(style.getLineStyle())
self.__shape.setLineWidth(style.getLineWidth())
self.__shape.setLineBgColor(style.getLineGapColor())
self.__shape.setLineGapColor(style.getLineGapColor())

def setFirstShapePoints(self, points):
assert len(points) == 2
Expand Down Expand Up @@ -532,7 +532,7 @@ def _updatedStyle(self, event, style):
self.__shape.setColor(style.getColor())
self.__shape.setLineStyle(style.getLineStyle())
self.__shape.setLineWidth(style.getLineWidth())
self.__shape.setLineBgColor(style.getLineGapColor())
self.__shape.setLineGapColor(style.getLineGapColor())

def setFirstShapePoints(self, points):
assert len(points) == 2
Expand Down Expand Up @@ -756,7 +756,7 @@ def _updatedStyle(self, event, style):
self.__shape.setColor(style.getColor())
self.__shape.setLineStyle(style.getLineStyle())
self.__shape.setLineWidth(style.getLineWidth())
self.__shape.setLineBgColor(style.getLineGapColor())
self.__shape.setLineGapColor(style.getLineGapColor())

def setFirstShapePoints(self, points):
assert len(points) == 2
Expand Down Expand Up @@ -901,7 +901,7 @@ def _updatedStyle(self, event, style):
self.__shape.setColor(style.getColor())
self.__shape.setLineStyle(style.getLineStyle())
self.__shape.setLineWidth(style.getLineWidth())
self.__shape.setLineBgColor(style.getLineGapColor())
self.__shape.setLineGapColor(style.getLineGapColor())

def setFirstShapePoints(self, points):
assert len(points) == 2
Expand Down Expand Up @@ -1179,7 +1179,7 @@ def _updatedStyle(self, event, style):
self.__shape.setColor(style.getColor())
self.__shape.setLineStyle(style.getLineStyle())
self.__shape.setLineWidth(style.getLineWidth())
self.__shape.setLineBgColor(style.getLineGapColor())
self.__shape.setLineGapColor(style.getLineGapColor())
if self._handleClose is not None:
color = self._computeHandleColor(style.getColor())
self._handleClose.setColor(color)
Expand Down

0 comments on commit a1ea173

Please sign in to comment.