When a theme is set at initialization of ThemedTk and toplevel=True, then the hook is installed before setting self.__init_toplevel to the original tk.Toplevel.__init__, causing it instead to be set to the local function that is meant to be the hook, creating infinite recursion.
This fixes issue #74.
When a theme is set at initialization of
ThemedTk
andtoplevel=True
, then the hook is installed before settingself.__init_toplevel
to the originaltk.Toplevel.__init__
, causing it instead to be set to the local function that is meant to be the hook, creating infinite recursion.