LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 01-09-2010, 12:06 PM   #1
donnied
Member
 
Registered: Oct 2006
Distribution: Debian x64
Posts: 198

Rep: Reputation: 30
how to pack tksimpledialog.askstring into root window python, tk


How do I pack a tksimpledialog.askstring to the root window? (Or how do I not have a blank root window appear?)

The code begins:
Code:
root = Tk()   
try:
        urltoopen = tkSimpleDialog.askstring('Address', 'Where do we get the pictures from?')
        usock = urllib2.urlopen(urltoopen) 
        data = usock.read()
        usock.close()
        a = data                                                              
except:                                                                         
        sys.exit()

Last edited by donnied; 01-09-2010 at 12:09 PM.
 
  


Reply

Tags
python, tk, tkinter


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting new terminal window or tab from existing window remaining as root? homerun Linux - Newbie 1 08-14-2009 12:34 PM
How to pack data into a 7z recursive + having autounpack EXE pack for windows? frenchn00b Linux - General 5 05-02-2009 02:59 PM
Enable Auto Completion Window on C/C++ Pack? lalabu Programming 1 11-05-2006 01:52 PM
Python example pack? LinuxSeeker Programming 2 12-29-2005 06:24 PM
TKInter, Python and A Pack Of Crisps Odd_Bloke Linux - Software 3 08-25-2003 05:08 PM


All times are GMT -5. The time now is 03:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration