ภาพรวม
เพื่อทำให้หน้าต่าง Tkinter หรือ Root Window โผล่เหนือหน้าต่างอื่นทั้งหมด ใช้เมธอด attributes รับ 2 ค่า ระบุ "topmost" และ Boolean Value
ตัวอย่างโค้ด
# Importing the library
from tkinter import *
# Create an instance of tkinter window or frame
win = Tk()
# Setting the geometry of window
win.geometry("600x250")
# Create a Label
Label(win, text="Hello Everyone!", font=('Helvetica bold', 15)).pack(pady=20)
# Make the window jump above all
win.attributes('-topmost', 1)
win.mainloop()
ผลลัพธ์
รันโค้ดจะทำให้หน้าต่างอยู่เหนือหน้าต่างอื่นทั้งหมด
