© Joshua M. Willman 2020
Joshua M. WillmanBeginning PyQthttps://doi.org/10.1007/978-1-4842-5857-6_9

9. Graphics and Animation in PyQt

Joshua M. Willman
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 ...

Get Beginning PyQt: A Hands-on Approach to GUI Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.