From 3d391d46e3878e32defc5b0a77499832edfa32f9 Mon Sep 17 00:00:00 2001 From: Ales Erjavec Date: Mon, 17 Aug 2020 09:27:23 +0200 Subject: [PATCH] Add `parent` to ArrowItem's constructor signature --- pyqtgraph/graphicsItems/ArrowItem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyqtgraph/graphicsItems/ArrowItem.py b/pyqtgraph/graphicsItems/ArrowItem.py index 8dc5bba2..a7cc831c 100644 --- a/pyqtgraph/graphicsItems/ArrowItem.py +++ b/pyqtgraph/graphicsItems/ArrowItem.py @@ -11,13 +11,13 @@ class ArrowItem(QtGui.QGraphicsPathItem): """ - def __init__(self, **opts): + def __init__(self, parent=None, **opts): """ Arrows can be initialized with any keyword arguments accepted by the setStyle() method. """ self.opts = {} - QtGui.QGraphicsPathItem.__init__(self, opts.pop('parent', None)) + QtGui.QGraphicsPathItem.__init__(self, parent) if 'size' in opts: opts['headLen'] = opts['size']