mirror of
https://gitlab.com/oloturia/fumcaso.git
synced 2025-01-08 22:47:17 +01:00
removed android version that wasn't working, created android branch
This commit is contained in:
parent
ae8a04176b
commit
ac0fdd5cd4
1 changed files with 0 additions and 26 deletions
26
main.py
26
main.py
|
@ -1,26 +0,0 @@
|
||||||
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):
|
|
||||||
img = Image(source="android.png")
|
|
||||||
|
|
||||||
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):
|
|
||||||
createStrip("android",30)
|
|
||||||
self.img.reload()
|
|
||||||
|
|
||||||
if __name__=="__main__":
|
|
||||||
app = strip_Layout()
|
|
||||||
app.run()
|
|
Loading…
Reference in a new issue