          self.statusbar.message.set(message)
          self.tk_vars.display.set("")
          get_images().delete_preview()
          preview_trigger().clear(trigger_type=None)
          self.command = None
          logger.debug("Terminated Faceswap processes")
          print("Process exited.")
  
  
  class FaceswapControl():
 
</s> remove         self.statusbar.stop()
        self.statusbar.message.set(message)
        self.tk_vars.display.set("")
 </s> add         self._statusbar.stop()
        self._statusbar.message.set(message)
        self._tk_vars.display.set("") </s> remove     """ Control the underlying Faceswap tasks """
    def __init__(self, wrapper):
        logger.debug("Initializing %s", self.__class__.__name__)
        self.wrapper = wrapper
 </s> add     """ Control the underlying Faceswap tasks.

    wrapper: :class:`ProcessWrapper`
        The object responsible for managing this faceswap task
    """
    def __init__(self, wrapper: ProcessWrapper) -> None:
        logger.debug("Initializing %s (wrapper: %s)", self.__class__.__name__, wrapper)
        self._wrapper = wrapper </s> remove         self.tk_vars.running_task.set(False)
        if self.task.command == "train":
            self.tk_vars.is_training.set(False)
 </s> add         self._tk_vars.running_task.set(False)
        if self._task.command == "train":
            self._tk_vars.is_training.set(False) </s> remove     def __init__(self):
 </s> add     def __init__(self) -> None: </s> remove         returncode = self.process.poll()
        message = self.set_final_status(returncode)
        self.wrapper.terminate(message)
 </s> add         returncode = self._process.poll()
        assert returncode is not None
        message = self._set_final_status(returncode)
        self._wrapper.terminate(message)
        self._command = None
          self.statusbar.message.set(message)
          self.tk_vars.display.set("")
          get_images().delete_preview()
          preview_trigger().clear(trigger_type=None)
        self._command = None
          logger.debug("Terminated Faceswap processes")
          print("Process exited.")
  
  
  class FaceswapControl():
keep keep keep keep replace keep keep keep keep keep
 bugfix: GUI force stdout/stderr reading to utf-8 
lib/gui/wrapper.py