How to make a label and remove it after 3 seconds in tkinter python? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 8

How to make a label and remove it after 3 seconds in tkinter python?

How to make a label and remove it after 3 seconds in tkinter python?

16th May 2019, 4:29 PM
Zhenis Otarbay
Zhenis Otarbay - avatar
2 Respuestas
+ 3
import time from Tkinter import * master = Tk() x = Label(master, text="Test... Test") x.pack() mainloop() time.sleep(3) master = Tk() x = Label(master, text="") x.pack() mainloop() Something like this?
17th May 2019, 9:28 AM
Steven M
Steven M - avatar
+ 10
Steven probably, yes, but we changed our mind, it now removes when there was appended another label
17th May 2019, 10:00 AM
Zhenis Otarbay
Zhenis Otarbay - avatar