回答編集履歴

1

もうちょっとスプラッシュのスコープを小さく

2017/12/13 11:08

投稿

YouheiSakurai
YouheiSakurai

スコア6142

test CHANGED
@@ -3,6 +3,8 @@
3
3
 
4
4
 
5
5
  ```python
6
+
7
+
6
8
 
7
9
  from threading import Thread
8
10
 
@@ -80,23 +82,27 @@
80
82
 
81
83
 
82
84
 
83
- if __name__ == '__main__':
85
+ with Splash("ちょっとまってね"):
84
86
 
85
- with Splash("ちょっとまってね"):
87
+ from kivy.app import App
86
88
 
87
- from kivy.app import App
88
-
89
- from kivy.uix.button import Button
89
+ from kivy.uix.button import Button
90
90
 
91
91
 
92
92
 
93
- class TestApp(App):
94
-
95
- def build(self):
96
-
97
- return Button(text='Hello World')
98
93
 
99
94
 
95
+ class TestApp(App):
96
+
97
+ def build(self):
98
+
99
+ return Button(text='Hello World')
100
+
101
+
102
+
103
+
104
+
105
+ if __name__ == '__main__':
100
106
 
101
107
  TestApp().run()
102
108