how to keep a window above all other OS windows?

MRAB google at mrabarnett.plus.com
Fri Sep 26 08:45:23 EDT 2008


On Sep 26, 10:04 am, Dennis Lee Bieber <wlfr... at ix.netcom.com> wrote:
> On Fri, 26 Sep 2008 19:52:59 +1200, Lawrence D'Oliveiro
> <l... at geek-central.gen.new_zealand> declaimed the following in
> comp.lang.python:
>
>
>
> > This sort of thing should be configurable in many X11-based window managers.
>
>         Maybe... But I'm stuck with a MicroSloth world -- at least they
> didn't decide 1 mouse button is all anyone would need <G>

There's some useful information at http://epydoc.sourceforge.net/stdlib/Tkinter.Wm-class.html.

>>> from Tkinter import *
>>> w = Tk()
>>> w.attributes('-topmost', True)
''
>>> w.mainloop()
>>>

The window stays on top.



More information about the Python-list mailing list