Application closes on Nokia E71 when using urllib.urlopen

Posted by sammr on Stack Overflow See other posts from Stack Overflow or by sammr
Published on 2010-05-20T23:03:53Z Indexed on 2010/05/29 23:12 UTC
Read the original article Hit count: 277

Filed under:
|

Hello,

Im running the following code on my Nokia E71. But after the text input, the program closes abruptly. I have a GPRS connection on my phone,but i still seem to be having some problem with urllib.urlopen

The code is as follows :

import appuifw,urllib

amountInDollars = appuifw.query(u"Enter amount in Dollars","text") data=urllib.urlopen("http://www.google.com").read()
appuifw.note(u"Hey","info")

Any way to fix this problem ? Thank You

© Stack Overflow or respective owner

Related posts about python

Related posts about pys60