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._ActionsContainer argparse._MutuallyExclusiveGroup argparse._MutuallyExclusiveGroup

Public Member Functions

def __init__
 
def __init__
 
- Public Member Functions inherited from argparse._ActionsContainer
def __init__
 
def __init__
 
def add_argument
 
def add_argument
 
def add_argument_group
 
def add_argument_group
 
def add_mutually_exclusive_group
 
def add_mutually_exclusive_group
 
def get_default
 
def register
 
def register
 
def set_defaults
 
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 _add_action
 
def _remove_action
 
def _remove_action
 

Private Attributes

 _actions
 
 _defaults
 
 _group_actions
 
 _has_negative_number_optionals
 
 _option_string_actions
 
 _registries
 

Detailed Description

Definition at line 1462 of file argparse.py.

Constructor & Destructor Documentation

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

Definition at line 1464 of file argparse.py.

References update.

Referenced by argparse._ArgumentGroup.__init__().

1465  def __init__(self, container, title=None, description=None, **kwargs):
1466  # add any missing keyword arguments by checking the container
1467  update = kwargs.setdefault
1468  update('conflict_handler', container.conflict_handler)
1469  update('prefix_chars', container.prefix_chars)
1470  update('argument_default', container.argument_default)
1471  super_init = super(_ArgumentGroup, self).__init__
1472  super_init(description=description, **kwargs)
1473 
1474  # group attributes
1475  self.title = title
1476  self._group_actions = []
1477 
1478  # share most attributes with the container
1479  self._registries = container._registries
1480  self._actions = container._actions
1481  self._option_string_actions = container._option_string_actions
1482  self._defaults = container._defaults
1484  container._has_negative_number_optionals
#define update(a, b)
def argparse._ArgumentGroup.__init__ (   self,
  container,
  title = None,
  description = None,
  kwargs 
)

Definition at line 1452 of file argparse.py.

References argparse._ArgumentGroup.__init__(), argparse._ActionsContainer._actions, argparse._ActionsContainer._defaults, argparse._ArgumentGroup._group_actions, argparse._ActionsContainer._has_negative_number_optionals, argparse._ActionsContainer._option_string_actions, argparse._ActionsContainer._registries, Message.title, cscdqm::HistoBookRequest.title, DB_ME.title, FWTriggerTableView::Column.title, SiPixelTrackerMap.title, DQMGenericClient::EfficOption.title, SiPixelHistoricInfoReader.title, big::bigHeader.title, TrackerMap.title, argparse._ArgumentGroup.title, and 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.

References argparse._ArgumentGroup._add_action().

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._add_action (   self,
  action 
)
private

Definition at line 1485 of file argparse.py.

Referenced by argparse._ArgumentGroup._add_action().

1486  def _add_action(self, action):
1487  action = super(_ArgumentGroup, self)._add_action(action)
1488  self._group_actions.append(action)
1489  return action
def argparse._ArgumentGroup._remove_action (   self,
  action 
)
private

Definition at line 1478 of file argparse.py.

References argparse._ArgumentGroup._remove_action().

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

Definition at line 1490 of file argparse.py.

Referenced by argparse._ArgumentGroup._remove_action().

1491  def _remove_action(self, action):
1492  super(_ArgumentGroup, self)._remove_action(action)
1493  self._group_actions.remove(action)
1494 

Member Data Documentation

argparse._ArgumentGroup._actions
private

Definition at line 1479 of file argparse.py.

argparse._ArgumentGroup._defaults
private

Definition at line 1481 of file argparse.py.

argparse._ArgumentGroup._group_actions
private

Definition at line 1475 of file argparse.py.

Referenced by argparse._ArgumentGroup.__init__().

argparse._ArgumentGroup._has_negative_number_optionals
private

Definition at line 1482 of file argparse.py.

argparse._ArgumentGroup._option_string_actions
private

Definition at line 1480 of file argparse.py.

argparse._ArgumentGroup._registries
private

Definition at line 1478 of file argparse.py.

argparse._ArgumentGroup.title

Definition at line 1474 of file argparse.py.

Referenced by argparse._ArgumentGroup.__init__(), python.Vispa.Views.LineDecayView.LineDecayContainer.autolayout(), python.Vispa.Views.LineDecayView.LineDecayContainer.autolayoutThreadFinished(), python.rootplot.root2matplotlib.HistStack.bar(), python.rootplot.root2matplotlib.HistStack.bar3d(), python.rootplot.root2matplotlib.HistStack.barcluster(), python.rootplot.root2matplotlib.HistStack.barh(), python.rootplot.root2matplotlib.HistStack.barstack(), python.Vispa.Views.LineDecayView.LineDecayContainer.childFinishedAutolayouting(), python.rootplot.root2matplotlib.HistStack.errorbar(), python.rootplot.root2matplotlib.HistStack.errorbarh(), cmsCodeRules.Formatter.SimpleHTMLFormatter.headers(), python.Vispa.Gui.PortWidget.PortWidget.name(), python.rootplot.root2matplotlib.Hist.show_titles(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), python.rootplot.utilities.Hist2D.TH2F(), and python.rootplot.root2matplotlib.Hist2D.TH2F().