kivy/examples/testapp.py

21 lines
463 B
Python
Raw Normal View History

2010-11-04 16:32:10 +00:00
from kivy.app import App
2010-11-06 05:27:41 +00:00
from kivy.clock import Clock
2010-11-06 03:14:23 +00:00
from kivy.uix.widget import Widget
2010-11-05 23:25:13 +00:00
from kivy.uix.button import Button
2010-11-06 03:14:23 +00:00
from kivy.uix.label import Label
from kivy.uix.video import Video
2010-11-06 03:14:23 +00:00
from kivy.core.text import Label as CoreLabel
from kivy.graphics import *
2010-11-06 05:27:41 +00:00
from random import random
2010-11-04 16:32:10 +00:00
class TestApp(App):
def build(self):
2010-11-16 23:00:57 +00:00
w = Widget()
with w.canvas:
Rectangle(pos=(25,50), size=(200,300))
return w
2010-11-04 16:32:10 +00:00
TestApp().run()