Search
 
SCRIPT & CODE EXAMPLE
 

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()
Comment

PREVIOUS NEXT
Code Example
Python :: python loop through list 
Python :: command prompt pause in python 
Python :: pandas new df from groupby 
Python :: split list in 3 part 
Python :: Set column as index with pandas 
Python :: python square root 
Python :: how to make a button circular in python 
Python :: django staff required 
Python :: index of sorted list python 
Python :: print random word py 
Python :: how to check python version in cmd 
Python :: sklearn rmse 
Python :: pandas object to float 
Python :: django queryset get all distinct 
Python :: get rid of n in string python 
Python :: openpyxl delete column by name 
Python :: emoji in python 
Python :: How to perform insertion sort, in Python? 
Python :: python read lines from text file 
Python :: python remove all except numbers 
Python :: my pygame window wont stay open 
Python :: empty directory if not empty python 
Python :: convert image to matrix python 
Python :: how to remove empty elements in a list python 
Python :: how to get current date in python 
Python :: add something to list python 
Python :: how to check if index is out of range python 
Python :: get cuda memory pytorch 
Python :: numpy how to calculate variance 
Python :: python get screen size 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =