How do I get a Tkinter application to jump to the front? Currently, the window appears behind all my other windows and doesn’t get focus.
Is there some method I should be calling?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming you mean your application windows when you say “my other windows”, you can use the
lift()method on a Toplevel or Tk:If you want the window to stay above all other windows, use:
Where
rootis your Toplevel or Tk. Don’t forget the-infront of"topmost"!To make it temporary, disable topmost right after:
Just pass in the window you want to raise as a argument, and this should work.