              name = os.path.splitext(name)[0]
              name = name[name.rfind("_") + 1:].title()
              try:
                  size = self.get_current_size(name)
                  self.previewtrain[name] = [Image.open(img), None, modified]
                  self.resize_image(name, size)
                  self.errcount = 0
              except ValueError:
                  # This is probably an error reading the file whilst it's
 
</s>
                logger.debug("Displaying preview: '%s'", img)
              name = os.path.splitext(name)[0]
              name = name[name.rfind("_") + 1:].title()
              try:
                logger.debug("Displaying preview: '%s'", img)
                  size = self.get_current_size(name)
                  self.previewtrain[name] = [Image.open(img), None, modified]
                  self.resize_image(name, size)
                  self.errcount = 0
              except ValueError:
                  # This is probably an error reading the file whilst it's
keep keep add keep keep keep keep keep keep
 Add right click menu to GUI. Implement some GUI Logging
lib/gui/utils.py