回答編集履歴
2
余分なコードを削除
test
CHANGED
@@ -27,8 +27,6 @@
|
|
27
27
|
size: root.size
|
28
28
|
|
29
29
|
Label:
|
30
|
-
|
31
|
-
id: label1
|
32
30
|
|
33
31
|
font_size: 40
|
34
32
|
|
1
sample codeの改善
test
CHANGED
@@ -26,19 +26,13 @@
|
|
26
26
|
|
27
27
|
size: root.size
|
28
28
|
|
29
|
-
|
30
|
-
|
31
29
|
Label:
|
32
|
-
|
33
|
-
|
34
30
|
|
35
31
|
id: label1
|
36
32
|
|
37
33
|
font_size: 40
|
38
34
|
|
39
35
|
text: app.shared_data.text
|
40
|
-
|
41
|
-
|
42
36
|
|
43
37
|
Button:
|
44
38
|
|
@@ -47,8 +41,6 @@
|
|
47
41
|
font_size: 40
|
48
42
|
|
49
43
|
text:'next'
|
50
|
-
|
51
|
-
|
52
44
|
|
53
45
|
on_press:
|
54
46
|
|
@@ -62,15 +54,9 @@
|
|
62
54
|
|
63
55
|
<SubScreen>:
|
64
56
|
|
65
|
-
on_kv_post:
|
66
|
-
|
67
|
-
text1.bind(text=app.shared_data.setter('text'))
|
68
|
-
|
69
57
|
BoxLayout:
|
70
58
|
|
71
59
|
orientation: 'vertical'
|
72
|
-
|
73
|
-
|
74
60
|
|
75
61
|
BoxLayout:
|
76
62
|
|
@@ -90,17 +76,15 @@
|
|
90
76
|
|
91
77
|
TextInput:
|
92
78
|
|
93
|
-
id: text1
|
94
|
-
|
95
79
|
font_size: 40
|
96
|
-
|
97
|
-
|
98
80
|
|
99
81
|
line_height: 1
|
100
82
|
|
101
83
|
multiline: False
|
102
84
|
|
103
85
|
hint_text: 'input'
|
86
|
+
|
87
|
+
on_kv_post: self.bind(text=app.shared_data.setter('text'))
|
104
88
|
|
105
89
|
|
106
90
|
|