[英]Speedtest using python kivy
您需要將速度計指針放在它自己的Image
中,然后使用Rotate
設置它的角度。 像這樣的東西:
Image:
source: 'needle.png'
canvas.before:
PushMatrix
Rotate:
angle: root.angle
axis: (0, 0, 1)
origin: (0,0,0) # position of the center of rotation of the needle
canvas.after:
PopMatrix
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.