回答編集履歴

2

Update

2021/11/13 14:55

投稿

melian
melian

スコア20655

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 len(text) else '花言葉が見つかりません'
21
+ text = text[0] if text else '花言葉が見つかりません'
22
22
 
23
23
  flower_text.set(text)
24
24
 

1

Update

2021/11/13 14:55

投稿

melian
melian

スコア20655

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