parameters: (self, listOfCheckedItems, item)
docstring: Sets the checked/unchecked state of a tree item.
  
          :param `listOfCheckedItems`: a list of checked :class:`~lib.agw.customtreectrl.CustomTreeCtrl` items;
          :param `item`: a :class:`~lib.agw.customtreectrl.CustomTreeCtrl` item.
docstring_summary: Sets the checked/unchecked state of a tree item.
docstring_tokens: Sets the checked / unchecked state of a tree item .
function: def SetCheckedStateOfItem(self, listOfCheckedItems, item):
          """
          Sets the checked/unchecked state of a tree item.
  
          :param `listOfCheckedItems`: a list of checked :class:`~lib.agw.customtreectrl.CustomTreeCtrl` items;
          :param `item`: a :class:`~lib.agw.customtreectrl.CustomTreeCtrl` item.
          """
  
          if self.GetItemIdentity(item) in listOfCheckedItems:
              self._window.CheckItem2(item, True)
          else:
              self._window.CheckItem2(item, False)
  
          self.SetCheckedStateOfChildren(listOfCheckedItems, item)
function_tokens: def SetCheckedStateOfItem ( self , listOfCheckedItems , item ) : if self . GetItemIdentity ( item ) in listOfCheckedItems : self . _window . CheckItem2 ( item , True ) else : self . _window . CheckItem2 ( item , False ) self . SetCheckedStateOfChildren ( listOfCheckedItems , item )