                   triggers: Optional["TriggerType"] = None) -> None:
          logger.debug("Initializing %s (parent: '%s')", self.__class__.__name__, parent)
          super().__init__(preview_buffer, triggers=triggers)
          self._is_standalone = parent is None
          self._initialized = not self._is_standalone
          self._root = parent if parent is not None else tk.Tk()
          self._master_frame = tk.Frame(self._root)
  
          self._taskbar = _Taskbar(self._master_frame, self._is_standalone)
  
 
</s> remove         self._taskbar = _Taskbar(self._master_frame, self._is_standalone)
 </s> add         self._taskbar = _Taskbar(self._master_frame, taskbar) </s> remove     def __init__(self, parent: tk.Frame, is_standalone: bool) -> None:
        logger.debug("Initializing %s (parent: '%s', is_standalone: %s)",
                     self.__class__.__name__, parent, is_standalone)
        super().__init__(parent)
 </s> add     def __init__(self, parent: tk.Frame, taskbar: Optional[ttk.Frame]) -> None:
        logger.debug("Initializing %s (parent: '%s', taskbar: %s)",
                     self.__class__.__name__, parent, taskbar)
        self._is_standalone = taskbar is None
        self._gui_mapped: List[tk.Widget] = []
        self._frame = tk.Frame(parent) if taskbar is None else taskbar
 </s> remove         assert self._pathoutput is not None
        folders = [] if not os.path.exists(self._pathoutput) else [
            os.path.join(self._pathoutput, folder)
            for folder in os.listdir(self._pathoutput)
            if os.path.isdir(os.path.join(self._pathoutput, folder))]
 </s> add         folders = [] if not os.path.exists(self._output_path) else [
            os.path.join(self._output_path, folder)
            for folder in os.listdir(self._output_path)
            if os.path.isdir(os.path.join(self._output_path, folder))] </s> remove     def __init__(self, save_variable: tk.BooleanVar) -> None:
        logger.debug("Initializing %s: (save_variable: %s)",
                     self.__class__.__name__, save_variable)
 </s> add     def __init__(self, save_variable: tk.BooleanVar, is_standalone: bool) -> None:
        logger.debug("Initializing %s: (save_variable: %s, is_standalone: %s)",
                     self.__class__.__name__, save_variable, is_standalone)
        self._is_standalone = is_standalone
        self._initialized = False
                   triggers: Optional["TriggerType"] = None) -> None:
          logger.debug("Initializing %s (parent: '%s')", self.__class__.__name__, parent)
          super().__init__(preview_buffer, triggers=triggers)
          self._is_standalone = parent is None
        self._initialized = False
          self._root = parent if parent is not None else tk.Tk()
          self._master_frame = tk.Frame(self._root)
  
          self._taskbar = _Taskbar(self._master_frame, self._is_standalone)
  
keep keep keep keep replace keep keep keep keep keep
 GUI - Preview updates
  - Training preview. Embed preview pop-out window
  - Bugfix - convert/extract previews 
lib/training/preview_tk.py