+ 2

Kivy question

How can i name a canvas? Like with Widget().canvas: Widget().something = Rectangle(...) And so i have to return Widget() but if it have two canvas in the same class how will i do it?

16th Nov 2018, 12:29 PM
I Am Arthur
I Am Arthur - avatar
1 Antwort
+ 3
I don't think it's possible to create multiple canvas in the same class. It'll always return the last canvas created. Rather we can create a canvas and can draw anything on it. Speaking of canvas, I think it's easy and more readable to write it in the kv file.
16th Nov 2018, 1:02 PM
đĘđ░ĐëđŞ đáđ░đŻđÂđ░đŻ
đĘđ░ĐëđŞ đáđ░đŻđÂđ░đŻ - avatar