Commit 0e1b57cf authored by Luke Campagnola's avatar Luke Campagnola
Browse files

bugfixes for ArrowItem __init__

parent 29be68d7
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment