def go(): text.delete(1.0, END) conn = urlhandler.urlhandler(entry.get()) conn.openURL() text.insert(INSERT, conn.getURLdata()) conn.closeURL()