The problem I've encountered is while I am attempting to keep the first functions(StartUpScr) widgets on screen for 3 seconds using time.sleep(3) before deleting all it's widgets placed on screen and then continuing to place the next functions(MenuScr) widgets. I've managed to successfully use destroy() to delete the first widgets and replace them with the second widgets, but for some reason when inputting time.sleep(3) anywhere in the functions and the main program, rather than the first widgets staying for 3 seconds and then being replaced it delays the start of the program producing a blank screen before quickly flashing past the first screen onto the second.
from tkinter import *
import tkinter
import time
window = tkinter.Tk()
window.title("BINARY-SUMS!!!")
window.geometry("1000x800")
window.wm_iconbitmap('flower3.ico')
window.configure(background='lavender')
def StartUpScr():
StartUpScr = tkinter.Label(window, text="FIRST-SCREEN!!!",fg = "Aqua",bg = "Lavender",font = ("Adobe Gothic Std B", 90, "bold" )).pack()
StartUpLabel = tkinter.Label(window, text="Developed by Robert Bibb 2016",bg = "Lavender",font = ("Calibri Light (Headings)", 10, "italic" ))
StartUpLabel.pack()
StartUpLabel.place(x = 400, y = 775)
def MenuScr():
StartUpScr = tkinter.Label(window, text="SECOND-SCREEN!!!",fg = "green",bg = "Lavender",font = ("Adobe Gothic Std B", 85, "bold" ))
StartUpScr.pack()
if __name__ == "__main__":
StartUpScr()
time.sleep(3)
for widget in window.winfo_children():
widget.destroy()
MenuScr()