          # load a file that is being saved
          show_file = sorted(imagefiles, key=os.path.getctime)[-2]
          img = Image.open(show_file)
          img.thumbnail((768, 432))
          self.previewoutput = (img, ImageTk.PhotoImage(img))
  
      def load_training_preview(self):
          """ Load the training preview images """
 
</s> remove             self.handletype = self.contexts[command][variable][action]
 </s> add             handletype = self.contexts[command][variable][action]
        logger.debug("Displaying preview: '%s'", show_file)
          # load a file that is being saved
          show_file = sorted(imagefiles, key=os.path.getctime)[-2]
          img = Image.open(show_file)
          img.thumbnail((768, 432))
        logger.debug("Displaying preview: '%s'", show_file)
          self.previewoutput = (img, ImageTk.PhotoImage(img))
  
      def load_training_preview(self):
          """ Load the training preview images """
keep keep keep add keep keep keep keep
 Add right click menu to GUI. Implement some GUI Logging 
lib/gui/utils.py