code: def add_cat(self, arg=None):
          
          try:
              self.done_callback(self.cat)
              self.visible = False
          except Exception as e:
              self.validator.object = ICONS['error']
              raise e
docs: Add cat and close panel