# Function to make new window def openNewWindow(): newWindow = Toplevel(root) newWindow.title("New page") newWindow.geometry("700x400") button = Button(root, text="Click me", command=openNewWindow) button.pack()