Keep one GUI always on TOP while python code is running

Chris Angelico rosuav at gmail.com
Fri Aug 8 10:34:05 EDT 2014


On Sat, Aug 9, 2014 at 12:23 AM, Rustom Mody <rustompmody at gmail.com> wrote:
> A windows equivalent for linux's wmctrl seems to be nir
> http://www.nirsoft.net/utils/nircmd2.html#using
>
> Search for 'settopmost'

No need; both of those are just setting the "always on top" flag,
which wxpython can do directly. It may be unobvious, as there seem to
be a lot of questions asked about it (lots of StackOverflow and forums
posts), but ultimately, there's a wx.STAY_ON_TOP flag that will do the
same thing.

However, the OP wasn't asking about visually keeping a window on top,
which is pretty easy. Trying to actually prevent access to any other
window is significantly harder to do, plus it's never going to be more
broad than one X session, plus it's almost always a bad UI idea.

ChrisA



More information about the Python-list mailing list