471,330 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

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

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

Jun 8 '07 #1
1 6309
On Jun 8, 11:48 am, rahulna...@yahoo.com 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:

http://mail.python.org/pipermail/tki...ch/000371.html

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

http://effbot.org/tkinterbook/tkinte...og-windows.htm
Mike

Jun 8 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by DoubleM | last post: by
6 posts views Thread by Richard Lewis | last post: by
reply views Thread by Stewart Midwinter | last post: by
1 post views Thread by Michael Yanowitz | last post: by
1 post views Thread by yvesd | last post: by
7 posts views Thread by Chris | last post: by
4 posts views Thread by MartinRinehart | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.