parameters: (self)
docstring: GetExpansionState() -> list of expanded items. Expanded items 
          are coded as determined by the result of GetItemIdentity(item).
docstring_summary: GetExpansionState() -> list of expanded items. Expanded items 
          are coded as determined by the result of GetItemIdentity(item).
docstring_tokens: GetExpansionState () - > list of expanded items . Expanded items are coded as determined by the result of GetItemIdentity ( item ) .
function: def GetExpansionState(self):
          """ GetExpansionState() -> list of expanded items. Expanded items 
          are coded as determined by the result of GetItemIdentity(item). """
          root = self.GetRootItem()
          if not root:
              return []
          if self.HasFlag(wx.TR_HIDE_ROOT):
              return self.GetExpansionStateOfChildren(root)
          else:
              return self.GetExpansionStateOfItem(root)
function_tokens: def GetExpansionState ( self ) : root = self . GetRootItem ( ) if not root : return [ ] if self . HasFlag ( wx . TR_HIDE_ROOT ) : return self . GetExpansionStateOfChildren ( root ) else : return self . GetExpansionStateOfItem ( root )