質問編集履歴
1
問題の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,9 +12,9 @@
|
|
12
12
|
|
13
13
|
```
|
14
14
|
|
15
|
-
frame
|
15
|
+
frameの初期状態の大きさがおかしいです
|
16
16
|
|
17
|
-
|
17
|
+
現状はframeのタイトル分の大きさしかなく、理想としてはwidthとheightで指定した大きさにしたいです。
|
18
18
|
|
19
19
|
```
|
20
20
|
|
@@ -38,15 +38,11 @@
|
|
38
38
|
|
39
39
|
|
40
40
|
|
41
|
-
|
42
|
-
|
43
41
|
root.geometry("1024x600")
|
44
42
|
|
45
43
|
|
46
44
|
|
47
|
-
|
48
|
-
|
49
|
-
frame1=tk.LabelFrame(root, width=
|
45
|
+
frame1=tk.LabelFrame(root, width=700, height=500, text="メニュー")
|
50
46
|
|
51
47
|
frame1.place(x=0,y=0)
|
52
48
|
|
@@ -76,11 +72,9 @@
|
|
76
72
|
|
77
73
|
|
78
74
|
|
79
|
-
a_notebook.add(tab1, text = '麺類')
|
80
75
|
|
81
76
|
|
82
|
-
|
77
|
+
a_notebook.add(tab1, text = '麺類')
|
83
|
-
|
84
78
|
|
85
79
|
|
86
80
|
|
@@ -88,55 +82,15 @@
|
|
88
82
|
|
89
83
|
|
90
84
|
|
85
|
+
UDN_How = 0
|
91
86
|
|
92
|
-
|
93
|
-
UDN_How = 0
|
94
|
-
|
95
|
-
UDN_Var = tk.StringVar(value="")
|
87
|
+
UDN_Var = tk.StringVar(value="")
|
96
|
-
|
97
|
-
SOBA_How = 0
|
98
|
-
|
99
|
-
SOBA_Var = tk.StringVar(value="")
|
100
|
-
|
101
|
-
RMN_How = 0
|
102
|
-
|
103
|
-
RMN_Var = tk.StringVar(value="")
|
104
|
-
|
105
|
-
CUDN_How = 0
|
106
|
-
|
107
|
-
CUDN_Var = tk.StringVar(value="")
|
108
|
-
|
109
|
-
CSOBA_How = 0
|
110
|
-
|
111
|
-
CSOBA_Var = tk.StringVar(value="")
|
112
|
-
|
113
|
-
UDNk_How = 0
|
114
|
-
|
115
|
-
UDNk_Var = tk.StringVar(value="")
|
116
|
-
|
117
|
-
SOBAk_How = 0
|
118
|
-
|
119
|
-
SOBAk_Var = tk.StringVar(value="")
|
120
|
-
|
121
|
-
RMNk_How = 0
|
122
|
-
|
123
|
-
RMNk_Var = tk.StringVar(value="")
|
124
|
-
|
125
|
-
CUDNk_How = 0
|
126
|
-
|
127
|
-
CUDNk_Var = tk.StringVar(value="")
|
128
|
-
|
129
|
-
CSOBAk_How = 0
|
130
|
-
|
131
|
-
CSOBAk_Var = tk.StringVar(value="")
|
132
88
|
|
133
89
|
|
134
90
|
|
135
91
|
GOK = 0
|
136
92
|
|
137
93
|
GOK_Var = tk.StringVar(value="合計" + str(GOK) + "円")
|
138
|
-
|
139
|
-
|
140
94
|
|
141
95
|
|
142
96
|
|
@@ -160,257 +114,9 @@
|
|
160
114
|
|
161
115
|
|
162
116
|
|
163
|
-
|
164
|
-
|
165
|
-
def SOBAcom():
|
166
|
-
|
167
|
-
global SOBA_How
|
168
|
-
|
169
|
-
SOBA_How = SOBA_How + 1
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
global GOK
|
174
|
-
|
175
|
-
GOK = GOK + 200
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
SOBA_Var.set("そば 200円" + str(SOBA_How) + "個")
|
180
|
-
|
181
|
-
GOK_Var.set("合計" + str(GOK) + "円")
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
def RMNcom():
|
188
|
-
|
189
|
-
global RMN_How
|
190
|
-
|
191
|
-
RMN_How = RMN_How + 1
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
global GOK
|
196
|
-
|
197
|
-
GOK = GOK + 200
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
RMN_Var.set("ラーメン 200円" + str(RMN_How) + "個")
|
202
|
-
|
203
|
-
GOK_Var.set("合計" + str(GOK) + "円")
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
def CUDNcom():
|
208
|
-
|
209
|
-
global CUDN_How
|
210
|
-
|
211
|
-
CUDN_How = CUDN_How + 1
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
global GOK
|
216
|
-
|
217
|
-
GOK = GOK + 300
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
CUDN_Var.set("カレーうどん 200円" + str(CUDN_How) + "個")
|
222
|
-
|
223
|
-
GOK_Var.set("合計" + str(GOK) + "円")
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
def CSOBAcom():
|
230
|
-
|
231
|
-
global CSOBA_How
|
232
|
-
|
233
|
-
CSOBA_How = CSOBA_How + 1
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
global GOK
|
238
|
-
|
239
|
-
GOK = GOK + 300
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
CSOBA_Var.set("カレーそば 300円" + str(CSOBA_How) + "個")
|
244
|
-
|
245
|
-
GOK_Var.set("合計" + str(GOK) + "円")
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
def UDNkcom():
|
252
|
-
|
253
|
-
global UDNk_How
|
254
|
-
|
255
|
-
UDNk_How = UDNk_How + 1
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
global GOK
|
260
|
-
|
261
|
-
GOK = GOK + 300
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
UDNk_Var.set("うどん 替え玉付き 300円" + str(UDNk_How) + "個")
|
266
|
-
|
267
|
-
GOK_Var.set("合計" + str(GOK) + "円")
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
def SOBAkcom():
|
272
|
-
|
273
|
-
global SOBAk_How
|
274
|
-
|
275
|
-
SOBAk_How = SOBAk_How + 1
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
global GOK
|
280
|
-
|
281
|
-
GOK = GOK + 300
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
SOBAk_Var.set("そば 替え玉付き 300円" + str(SOBAk_How) + "個")
|
286
|
-
|
287
|
-
GOK_Var.set("合計" + str(GOK) + "円")
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
def RMNkcom():
|
292
|
-
|
293
|
-
global RMNk_How
|
294
|
-
|
295
|
-
RMNk_How = RMNk_How + 1
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
global GOK
|
300
|
-
|
301
|
-
GOK = GOK + 300
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
RMNk_Var.set("ラーメン 替え玉付き 300円" + str(RMNk_How) + "個")
|
306
|
-
|
307
|
-
GOK_Var.set("合計" + str(GOK) + "円")
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
def CUDNkcom():
|
312
|
-
|
313
|
-
global CUDNk_How
|
314
|
-
|
315
|
-
CUDNk_How = CUDNk_How + 1
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
global GOK
|
320
|
-
|
321
|
-
GOK = GOK + 400
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
CUDNk_Var.set("カレーうどん 替え玉付き 400円" + str(CUDNk_How) + "個")
|
326
|
-
|
327
|
-
GOK_Var.set("合計" + str(GOK) + "円")
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
def CSOBAkcom():
|
332
|
-
|
333
|
-
global CSOBAk_How
|
334
|
-
|
335
|
-
CSOBAk_How = CSOBAk_How + 1
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
global GOK
|
340
|
-
|
341
|
-
GOK = GOK + 400
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
CSOBAk_Var.set("カレーそば 替え玉付き 400円" + str(CSOBAk_How) + "個")
|
346
|
-
|
347
|
-
GOK_Var.set("合計" + str(GOK) + "円")
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
#tab1
|
354
|
-
|
355
117
|
UDN = tk.Button(tab1, width=18, height=5, command=UDNcom, text="うどん\n¥200")
|
356
118
|
|
357
119
|
UDN.grid(column=0, row=0)
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
SOBA = tk.Button(tab1, width=18, height=5, command=SOBAcom, text="そば\n¥200")
|
362
|
-
|
363
|
-
SOBA.grid(column=1, row=0)
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
RMN = tk.Button(tab1, width=18, height=5, command=RMNcom, text="ラーメン\n¥200")
|
368
|
-
|
369
|
-
RMN.grid(column=2, row=0)
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
CUDN = tk.Button(tab1, width=18, height=5, command=CUDNcom, text="カレーうどん\n¥300")
|
374
|
-
|
375
|
-
CUDN.grid(column=3, row=0)
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
CSOBA = tk.Button(tab1, width=18, height=5, command=CSOBAcom, text="カレーそば\n¥300")
|
380
|
-
|
381
|
-
CSOBA.grid(column=4, row=0)
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
UDNk = tk.Button(tab1, width=18, height=5, command=UDNkcom, text="うどん替え玉付き\n¥300")
|
386
|
-
|
387
|
-
UDNk.grid(column=0, row=2)
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
SOBAk = tk.Button(tab1, width=18, height=5, command=SOBAkcom, text="そば替え玉付き\n¥300")
|
392
|
-
|
393
|
-
SOBAk.grid(column=1, row=2)
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
RMNk = tk.Button(tab1, width=18, height=5, command=RMNkcom, text="ラーメン替え玉付き\n¥300")
|
398
|
-
|
399
|
-
RMNk.grid(column=2, row=2)
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
CUDNk = tk.Button(tab1, width=18, height=5, command=CUDNkcom, text="カレーうどん替え玉付き\n¥400")
|
404
|
-
|
405
|
-
CUDNk.grid(column=3, row=2)
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
CSOBAk = tk.Button(tab1, width=18, height=5, command=CSOBAkcom, text="カレーそば替え玉付き\n¥400")
|
410
|
-
|
411
|
-
CSOBAk.grid(column=4, row=2)
|
412
|
-
|
413
|
-
|
414
120
|
|
415
121
|
|
416
122
|
|
@@ -420,69 +126,9 @@
|
|
420
126
|
|
421
127
|
|
422
128
|
|
423
|
-
SOBA_Lab = tk.Label(frame2, textvariable=SOBA_Var)
|
424
|
-
|
425
|
-
SOBA_Lab.grid()
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
RMN_Lab = tk.Label(frame2, textvariable=RMN_Var)
|
430
|
-
|
431
|
-
RMN_Lab.grid()
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
CUDN_Lab = tk.Label(frame2, textvariable=CUDN_Var)
|
436
|
-
|
437
|
-
CUDN_Lab.grid()
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
CSOBA_Lab = tk.Label(frame2, textvariable=CSOBA_Var)
|
442
|
-
|
443
|
-
CSOBA_Lab.grid()
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
UDNk_Lab = tk.Label(frame2, textvariable=UDNk_Var)
|
448
|
-
|
449
|
-
UDNk_Lab.grid()
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
SOBAk_Lab = tk.Label(frame2, textvariable=SOBAk_Var)
|
454
|
-
|
455
|
-
SOBAk_Lab.grid()
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
RMNk_Lab = tk.Label(frame2, textvariable=RMNk_Var)
|
460
|
-
|
461
|
-
RMNk_Lab.grid()
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
CUDNk_Lab = tk.Label(frame2, textvariable=CUDNk_Var)
|
466
|
-
|
467
|
-
CUDNk_Lab.grid()
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
CSOBAk_Lab = tk.Label(frame2, textvariable=CSOBAk_Var)
|
472
|
-
|
473
|
-
CSOBAk_Lab.grid()
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
129
|
GOK_Lab = tk.Label(frame3, textvariable=GOK_Var)
|
482
130
|
|
483
131
|
GOK_Lab.grid()
|
484
|
-
|
485
|
-
|
486
132
|
|
487
133
|
|
488
134
|
|