CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
argparse._ArgumentGroup Class Reference
Inheritance diagram for argparse._ArgumentGroup:
argparse._ActionsContainer argparse._MutuallyExclusiveGroup

Public Member Functions

def __init__
 
- Public Member Functions inherited from argparse._ActionsContainer
def __init__
 
def add_argument
 
def add_argument_group
 
def add_mutually_exclusive_group
 
def register
 
def set_defaults
 

Public Attributes

 title
 
- Public Attributes inherited from argparse._ActionsContainer
 argument_default
 
 conflict_handler
 
 description
 
 prefix_chars
 

Private Member Functions

def _add_action
 
def _remove_action
 

Private Attributes

 _actions
 
 _defaults
 
 _group_actions
 
 _has_negative_number_optionals
 
 _option_string_actions
 
 _registries
 

Detailed Description

Definition at line 1450 of file argparse.py.

Constructor & Destructor Documentation

def argparse._ArgumentGroup.__init__ (   self,
  container,
  title = None,
  description = None,
  kwargs 
)

Definition at line 1452 of file argparse.py.

References update.

1453  def __init__(self, container, title=None, description=None, **kwargs):
1454  # add any missing keyword arguments by checking the container
1455  update = kwargs.setdefault
1456  update('conflict_handler', container.conflict_handler)
1457  update('prefix_chars', container.prefix_chars)
1458  update('argument_default', container.argument_default)
1459  super_init = super(_ArgumentGroup, self).__init__
1460  super_init(description=description, **kwargs)
1461 
1462  # group attributes
1463  self.title = title
1464  self._group_actions = []
1465 
1466  # share most attributes with the container
1467  self._registries = container._registries
1468  self._actions = container._actions
1469  self._option_string_actions = container._option_string_actions
1470  self._defaults = container._defaults
1472  container._has_negative_number_optionals
#define update(a, b)

Member Function Documentation

def argparse._ArgumentGroup._add_action (   self,
  action 
)
private

Definition at line 1473 of file argparse.py.

1474  def _add_action(self, action):
1475  action = super(_ArgumentGroup, self)._add_action(action)
1476  self._group_actions.append(action)
1477  return action
def argparse._ArgumentGroup._remove_action (   self,
  action 
)
private

Definition at line 1478 of file argparse.py.

1479  def _remove_action(self, action):
1480  super(_ArgumentGroup, self)._remove_action(action)
1481  self._group_actions.remove(action)
1482 

Member Data Documentation

argparse._ArgumentGroup._actions
private

Definition at line 1467 of file argparse.py.

argparse._ArgumentGroup._defaults
private

Definition at line 1469 of file argparse.py.

argparse._ArgumentGroup._group_actions
private

Definition at line 1463 of file argparse.py.

argparse._ArgumentGroup._has_negative_number_optionals
private

Definition at line 1470 of file argparse.py.

argparse._ArgumentGroup._option_string_actions
private

Definition at line 1468 of file argparse.py.

argparse._ArgumentGroup._registries
private

Definition at line 1466 of file argparse.py.

argparse._ArgumentGroup.title

Definition at line 1462 of file argparse.py.

Referenced by cuy.plotElement.__init__(), cuy.additionElement.__init__(), cuy.superimposeElement.__init__(), cuy.graphElement.__init__(), Vispa.Views.LineDecayView.LineDecayContainer.autolayout(), Vispa.Views.LineDecayView.LineDecayContainer.autolayoutThreadFinished(), Vispa.Views.LineDecayView.LineDecayContainer.childFinishedAutolayouting(), Formatter.SimpleHTMLFormatter.headers(), and Vispa.Gui.PortWidget.PortWidget.name().