how to keep a window above all other OS windows?

Aaron "Castironpi" Brady castironpi at gmail.com
Tue Sep 23 21:55:25 EDT 2008


On Sep 23, 3:34 pm, dmitrey <dmitrey.kros... at scipy.org> wrote:
> On Sep 23, 11:21 pm, dmitrey <dmitrey.kros... at scipy.org> wrote:
>
> > Hi all,
> > how to keep a Tkinter window above all other OS windows (i.e.
> > including those ones from other programs)?
>
> > Thank you in advance,
> > Dmitrey
>
> I have put [Tkinter] into topic of my message but somehow it has been
> removed.
> D.

If you can get the handle of the window from the Tk framework, use the
os call in 'ctypes'.  Windows' call is ShowWindow( handle,
HWND_TOPMOST ) I think.



More information about the Python-list mailing list