From f67fd11a29d5b5eefe46566b57ded4adfb74b698 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 16 May 2022 17:59:10 -0400 Subject: [PATCH] Little formattito --- piker/ui/_cursor.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/piker/ui/_cursor.py b/piker/ui/_cursor.py index 8f18fe45..fe5fc100 100644 --- a/piker/ui/_cursor.py +++ b/piker/ui/_cursor.py @@ -98,9 +98,11 @@ class LineDot(pg.CurvePoint): ev: QtCore.QEvent, ) -> bool: - if not isinstance( - ev, QtCore.QDynamicPropertyChangeEvent - ) or self.curve() is None: + + if ( + not isinstance(ev, QtCore.QDynamicPropertyChangeEvent) + or self.curve() is None + ): return False # TODO: get rid of this ``.getData()`` and @@ -115,7 +117,10 @@ class LineDot(pg.CurvePoint): i = round(index - x[0]) if i > 0 and i < len(y): newPos = (index, y[i]) - QtWidgets.QGraphicsItem.setPos(self, *newPos) + QtWidgets.QGraphicsItem.setPos( + self, + *newPos, + ) return True return False