Modifying the application

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset