How to make a window stand above all?

0

I do not know if it's possible to do this, so I will not even put a Code here. My question is, if it is possible to make a window stay in front of all other windows, and I'm not talking about (TopLevel), I wanted the program window to be in front of all the others, including windows, : I have the Chrome window open, then when I open the program it stays on top of the Chrome window, but let me move it to Chrome.

Is there a possible solution? TopLevel works for python windows, I wanted it to work for the whole system.

    
asked by anonymous 05.02.2018 / 18:48

1 answer

0

You have a legal answer in the S.O. me English here:

link

Basically, you call the .attributes method of your window, by setting "-topmost" to True :

>>> import tkinter
>>> w = tkinter.Tk()
>>> w.attributes("-topmost", True)
    
05.02.2018 / 19:53