Have you tried converting the example to use python rather than kv?
https://kivy.org/doc/stable/examples/gen__canvas__rotation__py.html
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/f3e12c5f-8f71-4bc9-9873-b4b1866ee198n%40googlegroups.com.
Have you tried converting the example to use python rather than kv?
https://kivy.org/doc/stable/examples/gen__canvas__rotation__py.html
From: Degenerate Tech
Sent: Sunday, November 22, 2020 11:46 AM
To: Kivy users support
Subject: [kivy-users] rotate a drawing object
i have a rectangle i want to rotate by 90 degree ..how to do in pure python
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-...@googlegroups.com.
It is not clear what you are trying to do.
Any item drawn is ultimately a canvas object.
Other Options:
Use a Scatter Widget
Draw a rectangle using Line.points, and recalculate the x,y positions for the rotation.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/61866abc-1612-4fa6-8ffa-7e8a68e4fe7ao%40googlegroups.com.