#widget1.kv
Widget1:
canvas:
Ellipse:
pos: self.center_x - self.width/4, self.center_y - self.height/4
size: self.width/2, self.height/2
#Rectangle:
#pos: self.center_x - self.width/4, self.center_y - self.height/4
#size: self.width/2, self.height/2
---------------------
#widget1.py
from kivy.app import App
from kivy.uix.widget import Widget
class Widget1(Widget):
pass
class Widget1App(App):
pass
Widget1App().run()
referemce:
No comments:
Post a Comment