-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathform.kv
51 lines (42 loc) · 1.04 KB
/
form.kv
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
51
#:kivy 1.10.1
#:import app app
<LblTxt@BoxLayout>:
orientation: 'horizontal'
lblTxtIn: 'default'
theTxt: iAmTxt
Label:
text: root.lblTxtIn
TextInput:
id: iAmTxt
<LblNum@BoxLayout>:
orientation: 'horizontal'
lblTxtIn: 'default'
theTxt: iAmTxt
Label:
text: root.lblTxtIn
TextInput:
id: iAmTxt
text: '1'
<MyLayout@BoxLayout>:
orientation: 'vertical'
LblTxt:
id: question_id
lblTxtIn: 'question_id'
LblTxt:
id: user
lblTxtIn: 'user'
LblTxt:
id: crush
lblTxtIn: 'crush'
LblNum:
id: request_num
lblTxtIn: 'request_num'
Button:
text: 'Send with Random crush name'
on_release:
app.sendRandom(question_id.theTxt.text, user.theTxt.text, int(request_num.theTxt.text))
Button:
text: 'Send'
on_release:
app.send(question_id.theTxt.text, user.theTxt.text, crush.theTxt.text, int(request_num.theTxt.text))
MyLayout