回答編集履歴
2
Update
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
text = [t for (t, m, d) in abc if (m, d) == (int(Entry5.get()), int(Entry6.get()))]
|
20
20
|
|
21
|
-
text = text[0] if
|
21
|
+
text = text[0] if text else '花言葉が見つかりません'
|
22
22
|
|
23
23
|
flower_text.set(text)
|
24
24
|
|
1
Update
test
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
def command1():
|
16
16
|
|
17
|
-
global flower_text, flower_label
|
17
|
+
global abc, flower_text, flower_label
|
18
18
|
|
19
19
|
text = [t for (t, m, d) in abc if (m, d) == (int(Entry5.get()), int(Entry6.get()))]
|
20
20
|
|