0

Removing tkinter Labels

Hi Guys,I'm Really Stuck In A Problem Here. This Is My Code,I Was Trying To Make A Word Guess Game: https://code.sololearn.com/ccgO65D0hBuB/# In Line 46: My Problem Is That When The Players Attempts Turn To Zero,Some Labels Which Should Be Destroyed As I Put This In An If statement,But..They Are Not Destroyed. My Mind Is Blowing And I Don't Know Why This Happens,Please Help!

6th May 2020, 7:54 PM
Ahmad Tarek
Ahmad Tarek - avatar
3 Réponses
+ 2
Yup otherwise that game over wudn't print ,my bad didn't noticed ,I can't help sorry because I have no idea about tkinter ,I don't even get what is destroy() doing
6th May 2020, 8:40 PM
Abhay
Abhay - avatar
+ 1
But attempts==0 is never 0? It is actually 1 two times and then -1
6th May 2020, 8:17 PM
Abhay
Abhay - avatar
+ 1
Abhay It Turns Zero But It Stills 1 On The Label,Comment This If Statement And See.
6th May 2020, 8:21 PM
Ahmad Tarek
Ahmad Tarek - avatar