From 0e1b57cf01fe1d5f8410572e742a05f99d07ed08 Mon Sep 17 00:00:00 2001
From: Luke Campagnola <>
Date: Thu, 31 May 2012 16:07:23 -0400
Subject: [PATCH] bugfixes for ArrowItem __init__

---
 graphicsItems/ArrowItem.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/graphicsItems/ArrowItem.py b/graphicsItems/ArrowItem.py
index 7755ba1a..186ea55d 100644
--- a/graphicsItems/ArrowItem.py
+++ b/graphicsItems/ArrowItem.py
@@ -13,6 +13,10 @@ class ArrowItem(QtGui.QGraphicsPathItem):
     
     def __init__(self, **opts):
         QtGui.QGraphicsPathItem.__init__(self, opts.get('parent', None))
+        if 'size' in opts:
+            opts['headLen'] = opts['size']
+        if 'width' in opts:
+            opts['headWidth'] = opts['width']
         defOpts = {
             'pxMode': True,
             'angle': -150,   ## If the angle is 0, the arrow points left
-- 
GitLab