  
      def resize_image(self, name, framesize):
          """ Resize the training preview image
              based on the passed in frame size """
          displayimg = self.previewtrain[name][0]
          if framesize:
              frameratio = float(framesize[0]) / float(framesize[1])
              imgratio = float(displayimg.size[0]) / float(displayimg.size[1])
  
 
</s> remove             self.handletype = self.contexts[command][variable][action]
 </s> add             handletype = self.contexts[command][variable][action] </s> remove             self.handletype = self.contexts[command][action]
 </s> add             handletype = self.contexts[command][action]
        logger.debug(handletype)
        self.handletype = handletype
        logger.debug("Resizing image: (name: '%s', framesize: %s", name, framesize)
  
      def resize_image(self, name, framesize):
          """ Resize the training preview image
              based on the passed in frame size """
        logger.debug("Resizing image: (name: '%s', framesize: %s", name, framesize)
          displayimg = self.previewtrain[name][0]
          if framesize:
              frameratio = float(framesize[0]) / float(framesize[1])
              imgratio = float(displayimg.size[0]) / float(displayimg.size[1])
  
keep keep keep add keep keep keep keep keep
 Add right click menu to GUI. Implement some GUI Logging 
lib/gui/utils.py