© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
J. M. WillmanBeginning PyQthttps://doi.org/10.1007/978-1-4842-7999-1_7

7. Handling Events in PyQt

Joshua M Willman1  
(1)
Sunnyvale, CA, USA
 

Since GUIs need to perform tasks, the widgets, windows, and other aspects of the application need to be able to react to the events that occur. Whether caused by the user or by the underlying system, the events, and possibly data, need to be delivered to their appropriate locations and handled accordingly.

In this chapter, you will
  • Find out more about signals, slots, and event handling

  • Learn how to modify key press and mouse and enter event handlers

  • Explore how to create custom signals using pyqtSignal

This chapter is all about ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.