Форум сайта python.su
Извеияюсь за кривой вопрос.
from Tkinter import *
import urllib
def urlGET(event):
url = urllib.URLopener()
resp = url.open('http://icanhazip.com/')
html = resp.read()
#print html.strip()
ent.insert(END, s) %htm
root = Tk()
but = Button(root, text="whats my ip ")
ent = Entry(root, width=20, bd=12)
but.bind("<Button-1>", urlGET)
ent.pack()
but.pack()
root.mainloop()
Отредактировано (Март 28, 2010 12:14:05)
Офлайн
Разобрался сам:
tex.insert(END, “%s” % (html))
Офлайн
farextex.insert(END, html)
Разобрался сам:
tex.insert(END, “%s” % (html))
Офлайн