mirror of https://github.com/kivy/kivy.git
add test app
This commit is contained in:
parent
0b3eb62e16
commit
1cdace1b93
Binary file not shown.
After Width: | Height: | Size: 8.6 KiB |
|
@ -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()
|
Loading…
Reference in New Issue