1
0
Fork 0
mirror of https://gitlab.com/oloturia/fumcaso.git synced 2025-01-09 06:57:18 +01:00
fumcaso/main.py

27 lines
639 B
Python
Raw Normal View History

2019-11-27 00:58:28 +01:00
import kivy
from kivy.app import App
from kivy.uix.image import Image
from kivy.uix.button import Button
from kivy.uix.boxlayout import BoxLayout
from randstrip import createStrip
class strip_Layout(App):
2019-12-23 17:50:59 +01:00
img = Image(source="android.png")
2019-11-27 00:58:28 +01:00
def build(self):
layout = BoxLayout(orientation="vertical")
newStrip_Button = Button(text="New Strip", size_hint=(1,.3))
newStrip_Button.bind(on_press=self.newStrip)
layout.add_widget(self.img)
layout.add_widget(newStrip_Button)
return layout
def newStrip(self,instance):
2019-12-23 17:50:59 +01:00
createStrip("android",30)
2019-11-27 00:58:28 +01:00
self.img.reload()
if __name__=="__main__":
app = strip_Layout()
app.run()