Re: How to keep a Tkinter-Dialog on top of all other windows?

Discussion in 'Python' started by Jeff Epler, Jul 2, 2003.

  1. Jeff Epler

    Jeff Epler Guest

    On Wed, Jul 02, 2003 at 10:44:43AM -0500, Joe Fromm wrote:
    > Windows actually has two z-orders. Topmost windows and normal windows. All
    > topmost windows are always above normal windows.
    >
    > So setting a window into the topmost group will keep it on top of your app
    > with one call, but it will remain topmost even if another application is
    > activated. If that is acceptable to you then setting it to topmost is
    > indeed a simpler solution.


    Oh.

    If you just want to enforce window stacking between two toplevels in
    your application, you can use "wm transient" for this.
    t = Tkinter.Tk()
    u = Tkinter.Toplevel(t)
    u.wm_transient(t)
    t.mainloop()

    however, "wm transient" has other effects (TRANSIENT_STYLE, does not
    appear on task bar, etc).

    Jeff
    Jeff Epler, Jul 2, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jarek
    Replies:
    1
    Views:
    915
    Attila Feher
    Sep 18, 2003
  2. =?ISO-8859-1?Q?Thomas_N=FCcker?=

    How to keep a Tkinter-Dialog on top of all other windows?

    =?ISO-8859-1?Q?Thomas_N=FCcker?=, Jul 2, 2003, in forum: Python
    Replies:
    1
    Views:
    551
    Joe Fromm
    Jul 2, 2003
  3. dmitrey
    Replies:
    4
    Views:
    1,826
  4. Hidekazu IWAKI
    Replies:
    0
    Views:
    504
    Hidekazu IWAKI
    Dec 15, 2009
  5. joao
    Replies:
    1
    Views:
    71
    Jim Ley
    Jul 8, 2004
Loading...

Share This Page