add test app

This commit is contained in:
Mathieu Virbel 2010-11-04 12:32:10 -04:00
parent 0b3eb62e16
commit 1cdace1b93
2 changed files with 14 additions and 0 deletions

BIN
examples/kivy.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

14
examples/testapp.py Normal file
View File

@ -0,0 +1,14 @@
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.graphics import *
class TestApp(App):
def build(self):
a = Widget()
texture = Image('kivy.jpg').texture
with a.canvas:
Rectangle(size=(345, 345), texture=texture)
return a
TestApp().run()