-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
50 lines (37 loc) · 1.08 KB
/
main.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
44
45
46
47
48
49
50
#!/usr/bin/python
# -*- coding: utf-8 -*-
from kivy.app import App
from kivy.uix.button import Button
from kivy.uix.textinput import TextInput
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.scatter import Scatter
from kivy.uix.label import Label
from kivy.uix.floatlayout import FloatLayout
to_output = "staff"
def blink():
global to_output
to_output += '1'
return to_output
class LoginBox(BoxLayout):
def build(self):
self.orientation = 'vertical'
class MenuApp(App):
def build(self):
main_box = BoxLayout(orientation='vertical')
t = TextInput(text='default',
font_size=150,
size_hint_y=None,
height=200)
f = FloatLayout()
s = Scatter()
global to_output
l = Label(text=to_output,
font_size=150)
t.bind(text=l.setter('text'))
f.add_widget(s)
s.add_widget(l)
main_box.add_widget(f)
main_box.add_widget(t)
return main_box
if __name__ == "__main__":
MenuApp().run()