      convert = ConvertImage(
          subparser, "convert", "Convert a source image to a new one with the face swapped.")
      guiparsers = {'extract': extract, 'train': train, 'convert': convert}
      gui = TKGui(
          subparser, guiparsers, parser, "gui", "Launch the Faceswap Graphical User Interface.")
      parser.set_defaults(func=bad_args)
      arguments = parser.parse_args()
      arguments.func(arguments)
 
</s> remove             self.parser.set_defaults(func=self.bad_args)
            arguments = self.parser.parse_args()
            arguments.func(arguments)
        except:
            self.statustext.set('Failed: ' + command.title())    
            raise
        self.statustext.set('Idle')
        exit()        
 </s> add             self.process.terminate()
            self.process.wait(timeout=10)
            print('Terminated')
        except TimeoutExpired:
            print('Termination timed out. Killing Process...')
            self.process.kill()
            print('Killed')

    def set_final_status(self, returncode):
        """ Set the status bar output based on subprocess return code """
        if returncode == 0 or returncode == 3221225786:
            status = 'Ready'
        elif returncode == -15:
            status = 'Terminated - {}.py'.format(self.command)
        elif returncode == -9:
            status = 'Killed - {}.py'.format(self.command)
        elif returncode == -6:
            status = 'Aborted - {}.py'.format(self.command)
        else:
            status = 'Failed - {}.py. Return Code: {}'.format(self.command, returncode)
        self.utils.guitext['status'].set(status)
 </s> remove         self.arguments = None
 </s> add         self.argument_list = self.get_argument_list()
        self.optional_arguments = self.get_optional_arguments()
        self.args = None </s> remove         if not check_display(cmd) or not import_tkinter(cmd):
 </s> add         if not self.check_display(cmd) or not self.check_tkinter_available(cmd):
        subparser, guiparsers, "gui", "Launch the Faceswap Graphical User Interface.")
      convert = ConvertImage(
          subparser, "convert", "Convert a source image to a new one with the face swapped.")
      guiparsers = {'extract': extract, 'train': train, 'convert': convert}
      gui = TKGui(
        subparser, guiparsers, "gui", "Launch the Faceswap Graphical User Interface.")
      parser.set_defaults(func=bad_args)
      arguments = parser.parse_args()
      arguments.func(arguments)
keep keep keep keep replace keep keep keep
 GUI v0.2.1b (#352)

* Code refactor

* Console Added

* Add graphing with matplotlib

* Add GUI preview support

* Improve import handling.

* Add GUI integration for tools.py (Launch tools.py with the gui command)

* Reformat to conform to PEP8.

* Add Tooltips, 

* Make panels user adjustable

* Fix convert.py Sharpen default value 
faceswap.py