code: def add_class_button_status(self):
          
          if self.class_form.text() and self.radius_form.value() >= 0:
              self.add_class_button.setEnabled(True)
          else:
              self.add_class_button.setEnabled(False)
docs: Function to enable or disable add class button.