#!/usr/bin/python3 import pygame import picamera from Fotobox import Fotobox with picamera.PiCamera() as camera: fotobox = Fotobox(camera) try: fotobox.run() except KeyboardInterrupt: pass finally: pygame.quit()