Let's modify the cameo.py
file to use PygameWindowManager
instead of WindowManager
. Find the following line in cameo.py
:
from managers import WindowManager, CaptureManager
Replace it with:
from managers import PygameWindowManager as WindowManager, \ CaptureManager
That's all! Now cameo.py
uses a Pygame window that should close when the standard Close button is clicked.