3 # www5.py -- display the contents of a URL in a Text widget
11 if len(sys
.argv
) != 2 or sys
.argv
[1][:1] == '-':
12 print "Usage:", sys
.argv
[0], "url"
15 fp
= urllib
.urlopen(url
)
18 root
.title(url
) # Set window manager title
25 text
.insert('end', line
)