LinuxQuestions.org

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

donnied 01-09-2010 11:06 AM

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 01:06 AM.