Tkinter - Force toplevel window to stay on top of Tk() window

kyosohma at kyosohma at
Fri Jun 8 19:50:16 CEST 2007

On Jun 8, 11:48 am, rahulna... at wrote:
> Hi,
> I have a Tk() window "base_win = Tk()" with multiple frames on it
> having a combination of widgets. If I click on say a button widget
> which launches a new top level window "new_win = TopLevel()", I was
> looking for a way for this "new_win" to always stay on top of
> "base_win" till I close "new_win", as a result also not allowing any
> selections to be made in the "base_win" .
> Thanks
> Rahul

You need to research showing modal dialogs. This link looks promising:

This one from Lundh's site has better explanations on dialog's in


More information about the Python-list mailing list