By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,665 Members | 1,258 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,665 IT Pros & Developers. It's quick & easy.

Tkinter "withdraw" and "askstring" problem

P: n/a
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 <mi*********@zoran.com>
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)

iD8DBQFCW8kU8jAdENsUuJsRAudOAJ464NvuWhklK6ow5VnQCM ZSq89DDgCcDTBh
anso7tyEA6xtxhRV9FfdHVs=
=6mUN
-----END PGP SIGNATURE-----

Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.