def enterEvent(self, event): if self.isEnabled(): self.update() QAbstractButton.enterEvent(self, event)