@@ -0,0 +1,1204 @@
+from .steamwebbrowser import SteamWebBrowserCfg%0Afrom sys import version_info%0Afrom PIL.ImageTk import PhotoImage%0Aif version_info.major %3E= 3: # Python3%0A    import tkinter as tk%0Aelse: # Python 2%0A    import Tkinter as tk%0A%0Aclass SteamWebBrowserTk(SteamWebBrowserCfg):%0A    ''' SteamWebBrowserCfg with Tkinter UI for displaying captcha image%0A    '''%0A    @staticmethod%0A    def _handle_captcha(captcha_data, message=''):%0A        tk_root = tk.Tk()%0A        def close(captcha_text):%0A            if captcha_text.get() != '':%0A                tk_root.destroy() # Faster than .quit() and won't be re-used anyways%0A        tk_root.title('')%0A        tk_root.configure(bg='black')%0A        captcha = PhotoImage(data=captcha_data)%0A        tk.Label(tk_root, text=message, bg='black', fg='white').pack()%0A        tk.Label(tk_root, image=captcha, bg='black').pack()%0A        captcha_text = tk.StringVar()%0A        tk.Entry(%0A                tk_root,%0A                textvariable=captcha_text,%0A                bg='black',%0A                fg='white',%0A                insertbackground='white'%0A        ).pack()%0A        tk_root.bind('%3CReturn%3E', lambda s: close(captcha_text))%0A        tk_root.mainloop()%0A%0A        return captcha_text.get()%0A

Add Tkinter UI class from jbzdarkid