This example uses Pygame to have an interactive vote system. The number of Yes and No responses are store in the database, even when the app is closed. The reset button clears the data. You need to have an active database already set up.
The example: write_to_firebase_pygame.py