tkinter: window always over the rest

Discussion in 'Python' started by =?ISO-8859-1?Q?Vicente_Palaz=F3n_Gonz=E1lez?=, Apr 23, 2004.

  1. Hi,

    I'm programming an application with Tkinter on a Linux platform and
    I want to keep always a window over the rest of the windows of my
    application, even if it loses its focus, any idea?
    =?ISO-8859-1?Q?Vicente_Palaz=F3n_Gonz=E1lez?=, Apr 23, 2004
    #1
    1. Advertising

  2. =?ISO-8859-1?Q?Vicente_Palaz=F3n_Gonz=E1lez?=

    klappnase Guest

    Vicente Palazón González <> wrote in message news:<c6akde$4u5$>...
    > Hi,
    >
    > I'm programming an application with Tkinter on a Linux platform and
    > I want to keep always a window over the rest of the windows of my
    > application, even if it loses its focus, any idea?



    You could use the Toplevel window´s transient() method:

    root = Tk()
    t = Toplevel(root)
    t.transient(root)
    root.mainloop()

    I hope this helps

    Michael
    klappnase, Apr 23, 2004
    #2
    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. Deryck
    Replies:
    4
    Views:
    506
    derek giroulle
    Jun 22, 2004
  2. Benjamin Rutt
    Replies:
    3
    Views:
    853
    Raseliarison nirinA
    Mar 13, 2005
  3. Clara
    Replies:
    6
    Views:
    572
    Clara
    Apr 25, 2005
  4. Replies:
    1
    Views:
    682
  5. Ekkard Gerlach
    Replies:
    2
    Views:
    504
    Ekkard Gerlach
    Mar 14, 2009
Loading...

Share This Page