Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python tkinter go to another window on button click

# 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()
 
PREVIOUS NEXT
Tagged: #python #tkinter #window #button #click
ADD COMMENT
Topic
Name
7+6 =