I am migrating from a Macbook to a Windows laptop. This has revealed a problem which only shows up when PyCharm is running on my Windows laptop. Both laptops are running PyCharm Professional v3.1.1. Consider the following code fragment:
from PySide.QtGui import QWidget
def keyPressEvent(self, key_event):
PySide is one of the numerous packages which do not conform to the PEP8 naming conventions. Hence, camelcase function names like keyPressEvent() and timerEvent() get flagged with PEP8 warnings if PyCharm does not correctly recognize them as overrides.
With Windows, the PyCharm editor flags keyPressEvent() as an override but not timerEvent(). With MAC OS X, both functions are correctly flagged as overrides.
Note that keyPressEvent() is a function of QWidget, whereas timerEvent() is a function of QObject [QObject is one of the two parent classes of QWidget].