-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
43 lines (31 loc) · 896 Bytes
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import kivy
from kivy.app import App
#from kivy.uix.label import Label
#from kivy.uix.widget import Widget
from kivy.uix.image import Image
#from kivy.lang import Builder
from kivy.uix.floatlayout import FloatLayout
from kivy.uix.boxlayout import BoxLayout
from kivy.config import Config
Config.set('graphics', 'resizable', True)
from kivy.core.window import Window
Window.clearcolor = (1, 1, 1, 1)
from kivy.animation import Animation
class Image(FloatLayout):
pass
#class Widgets(Widget):
# pass
#class Image(Image):
# pass
class MyApp(App):
def build(self):
return FloatLayout()
#def animate(self,instance)
#return Image()
#def build(self):
# return Image (source = 'icon.png')
#class PongApp(App):
# def build(self):
# return PongGame()
if __name__ == '__main__':
MyApp().run()