parameters: (self,wid,col)
docstring: This method is run as the callback when the user selects an item in the tree.
  
          Enable and disable the add and remove buttons depending on what the
          user has selected.
  
          If they have selected one of the root attribute folders, disable the
          remove button. If they have separately selected an object in the 3D
          view, enable the add button, allowing the user to add that object to
          the root attribute folder.
  
          If they have selected one of the items inside a root attribute folder,
          enable the remove button, allowing the user to remove the object from
          that attribute.
  
          Parameters
          ----------
          wid: <PySide2.QtWidgets.QTreeWidgetItem>
              Qt object the user has selected in the tree widget.
docstring_summary: This method is run as the callback when the user selects an item in the tree.
docstring_tokens: This method is run as the callback when the user selects an item in the tree .
function: def check(self,wid,col):
          """This method is run as the callback when the user selects an item in the tree.
  
          Enable and disable the add and remove buttons depending on what the
          user has selected.
  
          If they have selected one of the root attribute folders, disable the
          remove button. If they have separately selected an object in the 3D
          view, enable the add button, allowing the user to add that object to
          the root attribute folder.
  
          If they have selected one of the items inside a root attribute folder,
          enable the remove button, allowing the user to remove the object from
          that attribute.
  
          Parameters
          ----------
          wid: <PySide2.QtWidgets.QTreeWidgetItem>
              Qt object the user has selected in the tree widget.
          """
  
          if not wid.parent():
              self.delButton.setEnabled(False)
              if self.obj:
                  sel = FreeCADGui.Selection.getSelection()
                  if sel:
                      if not(self.obj in sel):
                          self.addButton.setEnabled(True)
          else:
              self.delButton.setEnabled(True)
              self.addButton.setEnabled(False)
function_tokens: def check ( self , wid , col ) : if not wid . parent ( ) : self . delButton . setEnabled ( False ) if self . obj : sel = FreeCADGui . Selection . getSelection ( ) if sel : if not ( self . obj in sel ) : self . addButton . setEnabled ( True ) else : self . delButton . setEnabled ( True ) self . addButton . setEnabled ( False )