parameters: (self, flag)
return_statement: return res
docstring: Returns whether a flag is present in the :class:`FlatNotebook` style.
  
          :param `flag`: one of the possible :class:`FlatNotebook` window styles.
  
          :see: :meth:`FlatNotebook.SetAGWWindowStyleFlag() <FlatNotebook.SetAGWWindowStyleFlag>` for a list of possible window
           style flags.
docstring_summary: Returns whether a flag is present in the :class:`FlatNotebook` style.
docstring_tokens: Returns whether a flag is present in the : class : FlatNotebook style .
function: def HasAGWFlag(self, flag):
          """
          Returns whether a flag is present in the :class:`FlatNotebook` style.
  
          :param `flag`: one of the possible :class:`FlatNotebook` window styles.
  
          :see: :meth:`FlatNotebook.SetAGWWindowStyleFlag() <FlatNotebook.SetAGWWindowStyleFlag>` for a list of possible window
           style flags.
          """
  
          agwStyle = self.GetParent().GetAGWWindowStyleFlag()
          res = (agwStyle & flag and [True] or [False])[0]
          return res
function_tokens: def HasAGWFlag ( self , flag ) : agwStyle = self . GetParent ( ) . GetAGWWindowStyleFlag ( ) res = ( agwStyle & flag and [ True ] or [ False ] ) [ 0 ] return res