I'm writing a small GUI program with python in tkinter for windows. My window has to be in front of a fullscreen game-window.
At the moment, I use this line:
self.root.attributes("-topmost", 1)
which works for normal windows (browser, explorer, ...), but if I start the game to fullscreen mode, my window is hidden behind the game.
Why does this happen? Calls the game maybe something similar to -topmost True
that overrides my attribute?
Is there another solution to my problem? Maybe it is possible to tell windows, that my window should be in front of a specific window (the game window)?