0

Tkinter, what’s wrong? SOLVED

I want to display every 1 second 1 character from the list to the same label. But not like a string https://code.sololearn.com/czcCpLxcfE3R/?ref=app

6th Sep 2021, 3:48 PM
Nicola
Nicola  - avatar
3 ответов
+ 2
# You can use this : # Add this function in your Program : def do(n): if n == 0: pass else: a.set(random.choice(List)) windows.update_idletasks() windows.after(1000, lambda : do(n-1)) # Here n is the number of turns you want to change the Label # then add : windows.after(1000, lambda : do(n)) # in place of that For Loop you have used # your app will run smoothly # use functions rather than loops if you're making GUI. you can visit my github to see some tkinter examples. (link in profile) #Hope this helps
7th Sep 2021, 6:17 AM
Kartikey Kumar
Kartikey Kumar - avatar
0
the program clearly says that the python might be not configured for tkinter it means that you can't use tkinter module
6th Sep 2021, 4:38 PM
jsjsshjsjs
0
jsjsshjsjs i know that i can’t use tkinter on sololearn, but my code don’t do what i need
6th Sep 2021, 4:46 PM
Nicola
Nicola  - avatar