def __init__(self, tk_interpreter, gif_override=False):
self.tk = tk_interpreter<EOL>self.png_support = True and not gif_override<EOL>if tk.TkVersion <= <NUM_LIT> and not gif_override:<EOL><INDENT>self.png_support = False<EOL>try:<EOL><INDENT>from tkimg import load_tkimg_into_interpreter<EOL>load_tkimg_into_interpreter(self.tk)<EOL>self.png_support = True<EOL><DEDENT>except (ImportError, tk.TclError):<EOL><INDENT>pass<EOL><DEDENT><DEDENT>self._load_themes()<EOL>
Initialize attributes and call _load_themes

:param tk_interpreter: tk interpreter for tk.Widget that is
    being initialized as ThemedWidget. Even if this Widget is
    just a single widget, the changes affect all widgets with
    the same parent Tk instance.
:param gif_override: Force loading of GIF-themes even if
    PNG-themes can be loaded