Time delay using sleep

When I press the “Show” button using the code below, nothing happens for 3 seconds and then both “Building” and “Done!” appear on top of each other. How do I make it so that “Building” is displayed for 3 seconds and then replaced by “Done!”


import tkinter
from tkinter import *
import time

window = Tk()

def bar():
mylabel = Label(window, text=‘Building’, fg=‘blue’)
mylabel2 = Label(window, text=‘Done!’, fg=‘blue’)

button_show = Button(window, text = “Show”, command = bar)

Hey could you maybe send a pic on what’s happening, it will help me figure it out

Hello, @jason.ridler. You can see these three posts below about your problem:

Note:They are old posts but their code is working well.
Note2: In these posts, there may be an expression like import Tkinter, but Python 3 users must import tkinter by typing import tkinter

Thanks PythonBoy. Here’s what is happening: https://youtu.be/LpUrsMqAhuM