parameters: (self, item, itemIndex)
docstring: Refresh the item and its children recursively.
docstring_summary: Refresh the item and its children recursively.
docstring_tokens: Refresh the item and its children recursively .
function: def RefreshItemRecursively(self, item, itemIndex):
          """ Refresh the item and its children recursively. """
          hasChildren = bool(self.OnGetChildrenCount(itemIndex))
          item = self.DoRefreshItem(item, itemIndex, hasChildren)
          # We need to refresh the children when the item is expanded and
          # when the item has no children, because in the latter case we
          # might have to delete old children from the tree:
          if self.IsExpanded(item) or not hasChildren:
              self.RefreshChildrenRecursively(item, itemIndex)
          self.SetItemHasChildren(item, hasChildren)
function_tokens: def RefreshItemRecursively ( self , item , itemIndex ) : hasChildren = bool ( self . OnGetChildrenCount ( itemIndex ) ) item = self . DoRefreshItem ( item , itemIndex , hasChildren ) # We need to refresh the children when the item is expanded and # when the item has no children, because in the latter case we # might have to delete old children from the tree: if self . IsExpanded ( item ) or not hasChildren : self . RefreshChildrenRecursively ( item , itemIndex ) self . SetItemHasChildren ( item , hasChildren )