# Mess with it all you want
# Patrick S / 9-8-08/ 23:00

from Tkinter import *
import webbrowser

root = Tk()
root.title('::gProxy::')

fram = Frame(root)
Label(fram,text='Website:').pack(side=LEFT)
edit = Entry(fram)
edit.pack(side=LEFT, fill=BOTH, expand=1)
edit.focus_set()
butt = Button(fram, text='Connect')
butt.pack(side=RIGHT)
fram.pack(side=TOP)


def find():
    s = edit.get()
    url_goog = 'http://www.google.com/translate?u='
    trans = '&hl=en&ie=UTF-8&sl=es&tl=en'
    url_add1 = ''
    s = '+'.join((s.split(' ')))
    webbrowser.open(url_goog+s+trans)


butt.config(command=find)
root.mainloop()