Tkinter "withdraw" and "askstring" problem

Discussion in 'Python' started by Miki Tebeka, Apr 12, 2005.

  1. Miki Tebeka

    Miki Tebeka Guest

    Hello All,

    The following script "hangs" on win32 system:

    from Tkinter import *
    from tkSimpleDialog import askstring

    root = Tk()
    root.withdraw() # <<< Problem here
    askstring("Yap", "What's up?")

    If I remove the problematic "withdraw" line the script works but there is
    another Tk window at the back.

    Any way to solve the problem?

    Thanks.
    --
    ------------------------------------------------------------------------
    Miki Tebeka <>
    http://tebeka.bizhat.com
    The only difference between children and adults is the price of the toys

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.0 (Cygwin)

    iD8DBQFCW8kU8jAdENsUuJsRAudOAJ464NvuWhklK6ow5VnQCMZSq89DDgCcDTBh
    anso7tyEA6xtxhRV9FfdHVs=
    =6mUN
    -----END PGP SIGNATURE-----
    Miki Tebeka, Apr 12, 2005
    #1
    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. wes weston

    askstring => grab failes

    wes weston, Apr 26, 2004, in forum: Python
    Replies:
    1
    Views:
    444
    klappnase
    Apr 27, 2004
  2. Jeff Epler
    Replies:
    0
    Views:
    574
    Jeff Epler
    Apr 12, 2005
  3. iwl
    Replies:
    10
    Views:
    1,612
    jim-on-linux
    Mar 7, 2007
  4. Hidekazu IWAKI
    Replies:
    1
    Views:
    366
    Peter Otten
    Dec 14, 2009
  5. Hidekazu IWAKI
    Replies:
    0
    Views:
    515
    Hidekazu IWAKI
    Dec 15, 2009
Loading...

Share This Page