Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Tkinter "withdraw" and "askstring" problem

Reply
Thread Tools

Tkinter "withdraw" and "askstring" problem

 
 
Miki Tebeka
Guest
Posts: n/a
 
      04-12-2005
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 <(E-Mail Removed)>
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-----

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: What is the differences between tkinter in windows and Tkinter inthe other platform? Hidekazu IWAKI Python 0 12-15-2009 05:58 AM
What is the differences between tkinter in windows and Tkinter in theother platform? Hidekazu IWAKI Python 1 12-14-2009 03:44 PM
from Tkinter import *,win = Tk() "from Tkinter import *" Pierre Dagenais Python 0 08-03-2008 10:33 PM
Re: [Tkinter-discuss] Please help -- Tkinter Scale widget withDoubleVar is acting weird Jeff Epler Python 0 08-23-2004 02:31 PM
Re: [Tkinter-discuss] Please help -- Tkinter Scale widget withDoubleVar is acting weird Jeff Epler Python 0 08-20-2004 12:07 PM



Advertisments