Size execution arrows to dpi
parent
0dfa92230d
commit
f75b3108ce
|
@ -429,11 +429,14 @@ class ArrowEditor:
|
||||||
None: 180, # pointing to right (as in an alert)
|
None: 180, # pointing to right (as in an alert)
|
||||||
}[pointing]
|
}[pointing]
|
||||||
|
|
||||||
|
# scale arrow sizing to dpi-aware font
|
||||||
|
size = _font.font.pixelSize() * 0.8
|
||||||
|
|
||||||
arrow = pg.ArrowItem(
|
arrow = pg.ArrowItem(
|
||||||
angle=angle,
|
angle=angle,
|
||||||
baseAngle=0,
|
baseAngle=0,
|
||||||
headLen=5*3,
|
headLen=size,
|
||||||
headWidth=2*3,
|
headWidth=size/2,
|
||||||
tailLen=None,
|
tailLen=None,
|
||||||
pxMode=True,
|
pxMode=True,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue