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!”

Thanks

import tkinter
from tkinter import *
import time

window = Tk()
window.geometry(“200x200”)

def bar():
mylabel = Label(window, text=‘Building’, fg=‘blue’)
mylabel.place(x=0,y=0)
time.sleep(3)
mylabel2 = Label(window, text=‘Done!’, fg=‘blue’)
mylabel2.place(x=0,y=0)

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

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