質問編集履歴

1

**main.py(.run() 追記)**

2020/05/13 03:36

投稿

yujin5296
yujin5296

スコア16

test CHANGED
File without changes
test CHANGED
@@ -99,3 +99,39 @@
99
99
  ScreenApp().run()
100
100
 
101
101
  ```
102
+
103
+
104
+
105
+ ```
106
+
107
+ **main.py(.run() 追記)**
108
+
109
+
110
+
111
+
112
+
113
+ def main():
114
+
115
+
116
+
117
+
118
+
119
+ def screen():
120
+
121
+ ScreenApp().run()
122
+
123
+
124
+
125
+ if __name__ == '__main__':
126
+
127
+ thread_1 = threading.Thread(target=main)
128
+
129
+ thread_2 = threading.Thread(target=screen)
130
+
131
+
132
+
133
+ thread_1.start()
134
+
135
+ thread_2.start()
136
+
137
+ ```