[Tkinter] how to keep a window above all other OS windows?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dmitrey

    [Tkinter] how to keep a window above all other OS windows?

    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
  • dmitrey

    #2
    Re: how to keep a window above all other OS windows?

    On Sep 23, 11:21 pm, dmitrey <dmitrey.kros.. .@scipy.orgwrot e:
    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.

    Comment

    • Aaron \Castironpi\ Brady

      #3
      Re: how to keep a window above all other OS windows?

      On Sep 23, 3:34 pm, dmitrey <dmitrey.kros.. .@scipy.orgwrot e:
      On Sep 23, 11:21 pm, dmitrey <dmitrey.kros.. .@scipy.orgwrot e:
      >
      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.

      Comment

      • Lawrence D'Oliveiro

        #4
        Re: [Tkinter] how to keep a window above all other OS windows?

        In message <dqWdneZ7QrR-DUTVnZ2dnUVZ_tX inZ2d@earthlink .com>, Dennis Lee
        Bieber wrote:
        {I miss the Amiga --
        where one had the option to push a window to the back /without/ losing
        focus... made it useful for reading one window while touch-typing data
        into the "hidden" window}
        This sort of thing should be configurable in many X11-based window managers.

        Comment

        • MRAB

          #5
          Re: how to keep a window above all other OS windows?

          On Sep 26, 10:04 am, Dennis Lee Bieber <wlfr...@ix.net com.comwrote:
          On Fri, 26 Sep 2008 19:52:59 +1200, Lawrence D'Oliveiro
          <l...@geek-central.gen.new _zealanddeclaim ed the following in
          comp.lang.pytho n:
          >
          >
          >
          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....Wm-class.html.
          >>from Tkinter import *
          >>w = Tk()
          >>w.attributes( '-topmost', True)
          ''
          >>w.mainloop( )
          >>>
          The window stays on top.

          Comment

          Working...