python tkinter bring window to front code example
Example 1: tkinter keep window in front
root.attributes("-topmost", True)
Example 2: bring tkinter window to front
#bring tkinter window to the foreground add this to the end of your code
root.lift()