I want to use the answer from the askstring prompt to set a variable. Unfortunately, I have a dilemma: I got into a circle asking a question, or the window refuses to draw, because the variable (urltoopen) does not matter. Code in its current form:
urltoopen = tkSimpleDialog.askstring('Address', 'Where do we get the pictures from?')
usock = urllib2.urlopen(urltoopen)
data = usock.read()
usock.close()
source
share