  
  from .utils import Images
  
  
  class ProcessWrapper(object):
      """ Builds command, launches and terminates the underlying
          faceswap process. Updates GUI display depending on state """
  
      def __init__(self, statusbar, session=None, pathscript=None, cliopts=None):
          self.tk_vars = self.set_tk_vars()
 
</s> remove class FaceswapControl(object):
 </s> add class FaceswapControl(): </s> remove         self.consoleregex = {"loss": re.compile(r"([a-zA-Z_]+):.*?(\d+\.\d+)"),
                             "tqdm": re.compile(r"(\d+%|\d+/\d+|\d+:\d+|\d+\.\d+[a-zA-Z/]+)")}
 </s> add         self.consoleregex = {
            "loss": re.compile(r"([a-zA-Z_]+):.*?(\d+\.\d+)"),
            "tqdm": re.compile(r"(\d+%|\d+/\d+|\d+:\d+|\d+\.\d+[a-zA-Z/]+)")} </s> remove         if returncode == 0 or returncode == 3221225786:
 </s> add         if returncode in (0, 3221225786):
class ProcessWrapper():
  
  from .utils import Images
  
  
class ProcessWrapper():
      """ Builds command, launches and terminates the underlying
          faceswap process. Updates GUI display depending on state """
  
      def __init__(self, statusbar, session=None, pathscript=None, cliopts=None):
          self.tk_vars = self.set_tk_vars()
keep keep keep keep replace keep keep keep keep keep
 gui bugfix - termination on extract 
lib/gui/wrapper.py