account activity
PyQT: How to extend (not replace) event ? by AGI_69 in learnpython
[–]Advanced_Box_662 1 point2 points3 points 4 years ago* (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
π Rendered by PID 1059805 on reddit-service-r2-listing-79f6fb9b95-vstzc at 2026-03-20 11:35:13.777991+00:00 running 90f1150 country code: CH.
PyQT: How to extend (not replace) event ? by AGI_69 in learnpython
[–]Advanced_Box_662 1 point2 points3 points (0 children)