Making Tkinter window a child of non-Tkinter window Making Tkinter window a child of non-Tkinter window tkinter tkinter

Making Tkinter window a child of non-Tkinter window


Try with buttons:

from tkinter import *def Test():    Test = Toplevel()main = Tk()main.title("<Your title>")main.geometry("400x400")Button(main, text="<Your text>", command=Test).grid(row=0, column=0, sticky=W)main.mainloop()

That's what we get:See the picture