LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   how to pack tksimpledialog.askstring into root window python, tk (http://www.linuxquestions.org/questions/programming-9/how-to-pack-tksimpledialog-askstring-into-root-window-python-tk-781072/)

donnied 01-09-2010 12:06 PM

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()



All times are GMT -5. The time now is 05:19 PM.