Being a big fan of clean APIs and good abstraction, graphics.py is one of my favorite tools if I need a quick and dirty GUI for Python.
Graphics is lovely, but can be lacking in performance (it uses Tkinter as a backend). graphics2 uses pygame instead.
The API is completely compatible (will be when this is completed), so you can simply drop this file in your project and import it instead.
Requires pygame
pip install pygame
Tested in Python 3.6
- Set icon
- Pygame dependency. Pygame is a somewhat heavy library and pulls dependencies itself.
- Font rendering in Pygame leaves something to be desired
- Threaded event loop requires blocking pauses, causing overhead and performance degradation
- Slow(er) startup time, related to ^
- Can't get animations to be very smooth, any help?
- Poorly rendered curved shapes, should use gfxdraw (TODO)
See original documentation here.
TODO: Add/Document extra features.