def _handleevent(self, event): if event.type == 'mouseenter': #If enter, update rect to full size self._currentrect = self._rect elif event.type == 'mouseexit': #If exit, update rect to small size self._currentrect = self._minrect elif event.type == pygame.MOUSEBUTTONDOWN: #If click display menu #If menu is already displayed, do nothing if SlideManager.getCurrentSlide().gettype() != 'menu': #If any non looping movies playing do nothing if not len([item for item in globals.playing if not item.islooping()]): SlideManager.pushMenu(self._menuslide)