def onMouseOut(self): if (self.pressed or self.toggle) and self._processingMB1: self.theme.playButtonSound(self) self.pressed = not self.pressed else: self.highlighted = 0 self.processAction(self.hoverAction, self.highlighted) return Widget.onMouseOut(self)
def onMouseOut(self): if self._processingMB1: self.checked = not self.checked return Widget.onMouseOut(self)
def onMouseOut(self): if (self.pressed or self.toggle) and self._processingMB1: self.theme.playButtonSound(self) self.pressed = not self.pressed return Widget.onMouseOut(self)