As shown below:
#-*- encoding:utf-8 -*- from tkinter import * root = Tk() def create(): top = Toplevel() ('Python') v1 = StringVar() e1 = Entry(top,textvariable=v1,width=10) (row=1,column=0,padx=1,pady=1) Button(top, text='Appearance level 2').grid(row=1,column=1,padx=1,pady=1) Button(root, text='Click on level 1', command=create).pack() mainloop()
Above this python3 tkinter realization of clicking a button to jump out of another window is all I have to share with you, I hope to be able to give you a reference, and I hope you will support me more.