To receive an event in PyQT, you have to override the event-handler.
For example:
class MainWindow(QtWidgets.QMainWindow):
def __init__(self, *args, **kwargs):
super(MainWindow, self).__init__(*args, **kwargs)
def resizeEvent(self, event: QResizeEvent):
super().resizeEvent(event)
In this case, pylint shows error C0103 invalid-name:
Method name "resizeEvent" doesn't conform to snake_case naming style
Pylint is right, but you cannot rename the method, else I will not get the event.
But I don't want to disable these pylint warning for the whole project. Is it possible to deactivate the warning locally? Or can I mark the method as @override?
Thanks.