© Joshua M. Willman 2020Joshua M. WillmanBeginning PyQthttps://doi.org/10.1007/978-1-4842-5857-6_9
9. Graphics and Animation in PyQt
Joshua M. Willman1
Hampton, VA, USA
After going through many examples in previous chapters that introduce you to the fundamentals for building GUIs, Chapter 9 finally allows for you to explore your creative and artistic side through drawing and animation in PyQt5.
Graphics in PyQt is done primarily with the QPainter API. PyQt’s painting system handles drawing for text, images, and vector graphics and can be done on a variety of surfaces, including QImage, QWidget, and QPrinter. With QPainter you can enhance the look of existing widgets or create your own.
The main components of the painting system in PyQt are the ...