  
          opts_frame = tk.Frame(canvas)
          canvas.create_window((0,0), window=opts_frame, anchor=tk.NW)
  
          return opts_frame
  
      def add_scrollbar(self, frame, canvas):
          ''' Add a scrollbar to the options frame '''
          scrollbar = tk.Scrollbar(frame, command=canvas.yview)
          scrollbar.pack(side=tk.LEFT, fill='y')
 
</s> remove         opts_frame = tk.Frame(canvas)
        canvas.create_window((0,0), window=opts_frame, anchor=tk.NW)
 </s> add         optsframe = tk.Frame(canvas)
        canvas.create_window((0,0), window=optsframe, anchor=tk.NW) </s> remove         canvas.bind('<Configure>', lambda event, opt_canvas=canvas: self.update_scrollbar(event, opt_canvas))
 </s> add         canvas.bind('<Configure>',lambda event, cvs=canvas: self.update_scrollbar(event, cvs)) </s> remove # Right Frame setup    
    def add_right_frame(self, page):
 </s> add         self.notebook.add(self.page, text=self.title)

    def add_frame_seperator(self):
        ''' Add a seperator between left and right frames '''
        sep = tk.Frame(self.page, width=2, bd=1, relief=tk.SUNKEN)
        sep.pack(fill=tk.Y, padx=5, side=tk.LEFT)

    def add_right_frame(self): </s> remove         frame = tk.Frame(page)
 </s> add         frame = tk.Frame(option_frame) </s> remove         frame = tk.Frame(page)
 </s> add         frame = tk.Frame(self.page)
        return optsframe
  
          opts_frame = tk.Frame(canvas)
          canvas.create_window((0,0), window=opts_frame, anchor=tk.NW)
  
        return optsframe
  
      def add_scrollbar(self, frame, canvas):
          ''' Add a scrollbar to the options frame '''
          scrollbar = tk.Scrollbar(frame, command=canvas.yview)
          scrollbar.pack(side=tk.LEFT, fill='y')
keep keep keep keep replace keep keep keep keep keep
 GUI v0.1.0a (#336)

* Code clean up

* Code refactor

* bugfix: Find paths to icons when launched from outside faceswap dir

* Bugfix: Disable GUI if TkInter app not available

* BugFix: Disable GUI if $DISPLAY not detected

* Minor code ammends

* Code Refactor

* DISPLAY check fix 
scripts/gui.py