message box halts prgram flow

Discussion in 'Python' started by linuxnooby@yahoo.com.au, Mar 18, 2006.

  1. Guest

    HI

    I am creating a tkinter app.

    example

    tkMessageBox.showinfo("Window Text", "A short message")
    print "blah"

    The execution of the application halts when the message box is
    displayed until the user clicks OK, then "blah is printed.

    However I want the program to display message box and continue on to
    print blah without waiting for user response.

    Any suggestions on how to go about this?

    cheers David
     
    , Mar 18, 2006
    #1
    1. Advertising

  2. a écrit :
    > HI
    >
    > I am creating a tkinter app.
    >
    > example
    >
    > tkMessageBox.showinfo("Window Text", "A short message")
    > print "blah"
    >
    > The execution of the application halts when the message box is
    > displayed until the user clicks OK, then "blah is printed.


    Yeps, this is pretty much what anyone would expect from a sensible GUI
    toolkit.

    >
    > However I want the program to display message box and continue on to
    > print blah without waiting for user response.


    What's your use case ?

    > Any suggestions on how to go about this?


    Either use a non-modal window instead of a modal dialog box or use
    different threads.
     
    Bruno Desthuilliers, Mar 19, 2006
    #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. Karlo Lozovina
    Replies:
    2
    Views:
    398
    Karlo Lozovina
    Apr 16, 2006
  2. Jack Dowson
    Replies:
    0
    Views:
    469
    Jack Dowson
    May 7, 2007
  3. Todd

    python mysteriously halts

    Todd, Jul 7, 2008, in forum: Python
    Replies:
    5
    Views:
    294
    Gabriel Genellina
    Jul 15, 2008
  4. Ricardo Ramalho

    Regexp and string halts ruby

    Ricardo Ramalho, Jan 25, 2007, in forum: Ruby
    Replies:
    7
    Views:
    114
    James Edward Gray II
    Jan 26, 2007
  5. Simon
    Replies:
    8
    Views:
    308
Loading...

Share This Page