tkinter: window always over the rest

  • Thread starter =?ISO-8859-1?Q?Vicente_Palaz=F3n_Gonz=E1lez?=
  • Start date
?

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

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?
 
K

klappnase

Vicente Palazón González said:
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top