I am trying to make a Tkinter app, and I need to nest a Tk object inside another. Is there any way to do it? This is my current code:
from tkinter import *
root = Tk()
def new():
r =Tk()
Label(r, text="new window").pack()
Message(root, text="Lorem ipsum dolorsunt in culpa qui officia orum.", width=50).pack()
Button(root, text="new window", command=new, padx=30).pack()
root.mainloop()