-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtesting.py
44 lines (34 loc) · 985 Bytes
/
testing.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
#!/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 ExampleApp(App):
def build(self):
b = 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)
b.add_widget(f)
b.add_widget(t)
return b
if __name__ == "__main__":
ExampleApp().run()