Toplevel উইন্ডো চাইল্ড উইন্ডো। grab_set() মেথড ব্যবহার করে টপলেভেল উইন্ডোকে সব উইন্ডোর উপরে ফোকাসড রাখা যায়।
উদাহরণ
# Tkinter লাইব্রেরি ইম্পোর্ট
from tkinter import *
# Tkinter ফ্রেম তৈরি
win = Tk()
win.geometry("700x350")
def open_win():
top = Toplevel(win)
top.geometry("700x250")
Label(top, text="Hey Folks!", font=('Helvetica 14 bold')).pack()
top.grab_set()
# লেবেল
label = Label(win, text="Click the below Button to open the Popup", font=('Helvetica 18 bold'))
label.pack(pady=30)
# বাটন
button = Button(win, text="Click Me", command=open_win, font=('Helvetica 14 bold'), foreground='OrangeRed3', background="white")
button.pack(pady=50)
win.mainloop()
আউটপুট
বাটন সহ উইন্ডো দেখাবে।

বাটন ক্লিক করলে পপ-আপ উইন্ডো খুলবে এবং ফোকাস থাকবে।
