Toplevel(parent) অবজেক্ট দিয়ে চাইল্ড উইন্ডো (পপ-আপ) তৈরি করা হয়। এটি প্যারেন্ট উইন্ডোর সব প্রপার্টি ইনহেরিট করে।
উদাহরণ
# প্রয়োজনীয় লাইব্রেরি ইম্পোর্ট
from tkinter import *
# Tkinter ফ্রেম তৈরি
win = Tk()
win.geometry("700x250")
def open_win():
top = Toplevel(win)
top.geometry("700x250")
top.title("Child Window")
Label(top, text="Hello World!")
Label(win, text="Click the button to Open Popup Window", font=('Helvetica 18')).place(relx=.5, rely=.5, anchor=CENTER)
Button(win, text="Click Me", background="white", foreground="blue", font=('Helvetica 13 bold'), command=open_win).pack(pady=50)
win.mainloop()
আউটপুট
লেবেল এবং বাটন সহ উইন্ডো দেখাবে।

বাটন ক্লিক করলে নতুন পপ-আপ উইন্ডো খুলবে।
