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

Discussion in 'Python' started by rahulnag22@yahoo.com, Jun 8, 2007.

  1. Guest

    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, 2007
    #1
    1. Advertising

  2. Guest

    On Jun 8, 11:48 am, 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/tkinter-discuss/2005-March/000371.html

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

    http://effbot.org/tkinterbook/tkinter-dialog-windows.htm


    Mike
     
    , Jun 8, 2007
    #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. =?Utf-8?B?RHVzdGluIElJLg==?=

    make a browser window stay on top window handle?

    =?Utf-8?B?RHVzdGluIElJLg==?=, Aug 18, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    881
    Mark Rae
    Aug 18, 2004
  2. Matimus

    Tkinter menu toplevel or frame

    Matimus, Mar 15, 2007, in forum: Python
    Replies:
    1
    Views:
    501
    Gigs_
    Mar 16, 2007
  3. Chris

    Tkinter Toplevel geometry

    Chris, Mar 25, 2007, in forum: Python
    Replies:
    7
    Views:
    563
    Chris
    Mar 27, 2007
  4. Pedro

    Tkinter, toplevel and images

    Pedro, Aug 22, 2008, in forum: Python
    Replies:
    2
    Views:
    523
    Fredrik Lundh
    Aug 23, 2008
  5. craf
    Replies:
    3
    Views:
    419
    Eric Brunel
    Dec 9, 2010
Loading...

Share This Page