def toggle_create_button(self):
        """Enable or disable Create Mask button based on drawn objects."""
        if len(self._drawn_tags) > 0:
            self.w.create_mask.set_enabled(True)
        else:
            self.w.create_mask.set_enabled(False)
def toggle_create_button ( self ) : if len ( self . _drawn_tags ) > 0 : self . w . create_mask . set_enabled ( True ) else : self . w . create_mask . set_enabled ( False )
Enable or disable Create Mask button based on drawn objects.