def invoke(self, context, event): gestSlide = SlidesManager() listSize = len( gestSlide.listSlides[gestSlide.posActiveSlide].listObjects) if listSize == 0: gestSlide.removeSlide() else: ops.operator.popupdelete('INVOKE_DEFAULT') return {'RUNNING_MODAL'}
def execute(self, context): gestSlide = SlidesManager() gestSlide.removeSlide() return {'INTERFACE'}