0

How do I force my console window to be always on top with Python?

SeanC
  • 15,695
  • 5
  • 45
  • 66
Bruno 'Shady'
  • 4,348
  • 13
  • 55
  • 73
  • Does this answer your question? [How can I ensure that the application windows is always on top?](https://stackoverflow.com/questions/3678966/how-can-i-ensure-that-the-application-windows-is-always-on-top) – Wai Ha Lee Nov 27 '20 at 07:52

2 Answers2

3

Don't. There's nothing worse than two windows that think they deserve to be the one on top fighting it out. I've seen CPUs dragged to their knees by it.

Paul Tomblin
  • 179,021
  • 58
  • 319
  • 408
2

Unless you are using a console window written by yourself as a "real" window you can alter the state of, you'd have to talk to the window manager (be it Windows's or some of the Linux ones).

But I agree with Paul Tomblin. I think most window managers have that feature built in for users to activate it if they WANT it on top!

LukeN
  • 5,590
  • 1
  • 25
  • 33