def _on_key_down(self, event):
    if (event.char == ' '):
        self._save_image(self.imageCanvas.crop_image())
        self.doneSet.add(self.currImage)
        self._datasource.save_store()
        self._roll_image()
    elif (event.char == 's'):
        self.doneSet.add(self.currImage)
        self._datasource.save_store()
        self._roll_image()
    elif (event.char == 'q'):
        self.tkroot.destroy()
def _on_key_down(self, event):
    if (event.char == ' '):
        self._save_image(self.imageCanvas.crop_image())
        self.doneSet.add(self.currImage)
        self._datasource.save_store()
        self._roll_image()
    elif (event.char == 's'):
        self.doneSet.add(self.currImage)
        self._datasource.save_store()
        self._roll_image()
    elif (event.char == 'q'):
        self.tkroot.destroy()