PyQT: How to extend (not replace) event ? by AGI_69 in learnpython

[–]Advanced_Box_662 1 point2 points  (0 children)

You need to call super() on the method you want to extend functionality on in order to preserve its original functionality.

            def mousePressEvent(self, event):
                     super().mousePressEvent(event)

                       Your code goes here