如何编辑我的代码,使 'next' 按钮在 WINDOW 中指向一个空白页面? (不是新的 window )

How do I edit my code to make the 'next' button lead to a blank page IN THE SAME WINDOW? (not a new window )

from tkinter import Tk, Canvas, Frame, BOTH
from tkinter import *
from tkinter import Tk

#Welcome screen

root = Tk()
root.configure(bg = "steel blue")


canvas = Canvas(root, bg = "steel blue", highlightthickness = 0)
canvas.config(width = 350, height = 250)

#canvas.config(width = root.winfo_screenwidth(), height = root.winfo_screenheight() )
canvas.pack()

#Making of the round rectangle

class Rectangle:

    def round_rectangle(x1, y1, x2, y2, radius=25, **kwargs):

        points = [x1+radius, y1,
                  x1+radius, y1,
                  x2-radius, y1,
                  x2-radius, y1,
                  x2, y1,
                  x2, y1+radius,
                  x2, y1+radius,
                  x2, y2-radius,
                  x2, y2-radius,
                  x2, y2,
                  x2-radius, y2,
                  x2-radius, y2,
                  x1+radius, y2,
                  x1+radius, y2,
                  x1, y2,
                  x1, y2-radius,
                  x1, y2-radius,
                  x1, y1+radius,
                  x1, y1+radius,
                  x1, y1]

        return canvas.create_polygon(points, **kwargs, smooth=True)

    my_rectangle = round_rectangle(10, 60, 330, 250, radius=20, outline = "black", fill="white")

canvas.place(relx=0.5, rely=0.5,anchor=CENTER)

def UserIdentification():
    newWindow = Toplevel(root)

Next_button=Button(root,text = "Next", anchor = W, command = UserIdentification)
Next_button.configure(width = 10, bg = "black", fg = "blue" ,borderwidth = 4)
Next_button = canvas.create_window(150, 200, anchor=NW, window=Next_button)

canvas.create_text(170, 100, text = "Hey there, welcome to DeliverToday! \nWe bring your needs right at your doorstep ~ \nhave a great journey ahead!")  

root.mainloop()

你好,上面的代码完全可以工作,但我对如何让“下一步”按钮创建一个新的空白屏幕感到困惑(我稍后会设计它,但现在空白以使其不那么复杂)。我不能使用顶级,因为我不想打开一个全新的 window,但我希望它在同一个 window 中打开(一个屏幕退出,另一个屏幕打开)。我如何使用非常简单的代码来做到这一点? (按钮在 canvas 上)

您可以使用 delete 方法删除 canvas 上的所有内容。如果您将文字字符串“all”传递给它,它将删除 canvas.

上的所有内容
def UserIdentification():
    canvas.delete("all")