Make a tkinter window appear over all other windows

后端 未结 1 492
失恋的感觉
失恋的感觉 2021-01-03 10:31
#!/usr/bin/env python
# Display window with toDisplayText and timeOut of the window.

from Tkinter import *

def showNotification(notificationTimeout, textToDisplay)         


        
相关标签:
1条回答
  • 2021-01-03 11:23

    According to this message you should be able to add the following after root.overridedirect(1). A quick test here suggests it should work for you.

    root.wm_attributes("-topmost", 1)
    
    0 讨论(0)
提交回复
热议问题