質問編集履歴
1
コードに反映できていなかったので訂正しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,15 +22,7 @@
|
|
22
22
|
|
23
23
|
### 該当のソースコード
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
```python
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
ーーーーーー以下ソースコードーーーーーーーーーーー
|
32
|
-
|
33
|
-
|
34
26
|
|
35
27
|
import wx
|
36
28
|
|
@@ -156,7 +148,7 @@
|
|
156
148
|
|
157
149
|
|
158
150
|
|
159
|
-
button4 = wx.Button(self, -1, "
|
151
|
+
button4 = wx.Button(self, -1, "URL", pos=(538,300))
|
160
152
|
|
161
153
|
button4.SetSize((150,90))
|
162
154
|
|
@@ -196,7 +188,7 @@
|
|
196
188
|
|
197
189
|
self.SetBackgroundColour('#75b1a9')
|
198
190
|
|
199
|
-
s_text_1 = wx.StaticText(self, wx.ID_ANY, '本日の
|
191
|
+
s_text_1 = wx.StaticText(self, wx.ID_ANY, '本日の記録欄', pos=(10,8))
|
200
192
|
|
201
193
|
font = wx.Font(20, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_HEAVY)
|
202
194
|
|
@@ -336,7 +328,7 @@
|
|
336
328
|
|
337
329
|
def click_button6(self, event):
|
338
330
|
|
339
|
-
|
331
|
+
otogename = self.combobox1.GetValue()
|
340
332
|
|
341
333
|
sukoa = self.numbertxt1.GetValue()
|
342
334
|
|
@@ -346,15 +338,15 @@
|
|
346
338
|
|
347
339
|
koment = self.textbox2.GetValue()
|
348
340
|
|
349
|
-
time = self.datetime.datetime.now()
|
341
|
+
time = self.datetime.datetime.now()
|
350
|
-
|
342
|
+
|
351
|
-
os.makedirs(desktop_path+r"\
|
343
|
+
os.makedirs(desktop_path+r"\test\ " + otogename , exist_ok=True)
|
352
|
-
|
344
|
+
|
353
|
-
f = open( desktop_path+r"\
|
345
|
+
f = open( desktop_path+r"\test\ " + otogename +"\ "+kyokumei +".txt" ,'a', encoding='UTF-8')
|
354
346
|
|
355
347
|
f.write(kyokumei+"\n")
|
356
348
|
|
357
|
-
datalist = ['スコア:'+str(sukoa)+'\n', '
|
349
|
+
datalist = ['スコア:'+str(sukoa)+'\n', '状態:'+zyoutai+'\n','コメント:'+koment,'\n記録日時・・・'+ str(time) +'\n\n\n\n']
|
358
350
|
|
359
351
|
f.writelines(datalist)
|
360
352
|
|
@@ -362,7 +354,7 @@
|
|
362
354
|
|
363
355
|
|
364
356
|
|
365
|
-
|
357
|
+
def click_button7(self, event):
|
366
358
|
|
367
359
|
self.textbox.Clear()
|
368
360
|
|
@@ -372,7 +364,11 @@
|
|
372
364
|
|
373
365
|
self.combobox2.SetStringSelection("")
|
374
366
|
|
375
|
-
self.numbertxt1.SetValue(0)
|
367
|
+
self.numbertxt1.SetValue(0)
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
```
|
376
372
|
|
377
373
|
|
378
374
|
|