def config(self, kw=None, **kwargs):
themebg = kwargs.pop("<STR_LIT>", self._themebg)<EOL>toplevel = kwargs.pop("<STR_LIT>", self._toplevel)<EOL>theme = kwargs.pop("<STR_LIT>", self.current_theme)<EOL>color = self._get_bg_color()<EOL>if themebg != self._themebg:<EOL><INDENT>if themebg is False:<EOL><INDENT>self.configure(bg="<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>self.configure(bg=color)<EOL><DEDENT>self._themebg = themebg<EOL><DEDENT>if toplevel != self._toplevel:<EOL><INDENT>if toplevel is True:<EOL><INDENT>self._setup_toplevel_hook(color)<EOL><DEDENT>else:<EOL><INDENT>tk.Toplevel.__init__ = self.__init__toplevel<EOL><DEDENT>self._toplevel = toplevel<EOL><DEDENT>if theme != self.current_theme:<EOL><INDENT>self.set_theme(theme)<EOL><DEDENT>return tk.Tk.config(self, kw, **kwargs)<EOL>
configure redirect to support additional options