code: 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)
docs: Enable or disable Create Mask button based on drawn objects.