tkinter keep window on top code example
Example 1: tkinter always on top
app.attributes('-topmost', True)
app.update()
Example 2: tkinter keep window in front
root.attributes("-topmost", True)
app.attributes('-topmost', True)
app.update()
root.attributes("-topmost", True)