質問編集履歴
2
書式の改善
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|
1
追記しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -171,4 +171,28 @@
|
|
171
171
|
###補足情報(言語/FW/ツール等のバージョンなど)
|
172
172
|
Python2.7
|
173
173
|
kivy
|
174
|
-
Mac
|
174
|
+
Mac
|
175
|
+
|
176
|
+
###追記(10月17日 14:30)
|
177
|
+
<壁2> ボタン系
|
178
|
+
・「main2」で入力したtextを、[OK]からCSVに追加。
|
179
|
+
・「main1」の<bottoms>でPythonランチャー上にCSVの中身を表示。
|
180
|
+
まではできました。
|
181
|
+
GUI上に表示をしたいです。
|
182
|
+
```python
|
183
|
+
〜(略)〜
|
184
|
+
def buttonClicked(self):
|
185
|
+
self.text=self.ids["text_box"].text
|
186
|
+
f = open('sample.csv',mode ='a')
|
187
|
+
writer = csv.writer(f)
|
188
|
+
writer.writerow([self.ids["text_box"].text])
|
189
|
+
f.close
|
190
|
+
〜(略)〜
|
191
|
+
def buttonClicked_bottoms(self):
|
192
|
+
f = open('sample.csv',mode ='r',)
|
193
|
+
reader = csv.reader(f)
|
194
|
+
for row in reader:
|
195
|
+
print(row)
|
196
|
+
f.close()
|
197
|
+
〜(略)〜
|
198
|
+
```
|