parameters: (self, maxCommands=-1)
docstring: Constructor.  maxCommands may be set to a positive integer to limit
          the number of commands stored to it, otherwise (and by default) the
          list of commands can grow arbitrarily.
docstring_summary: Constructor.  maxCommands may be set to a positive integer to limit
          the number of commands stored to it, otherwise (and by default) the
          list of commands can grow arbitrarily.
docstring_tokens: Constructor . maxCommands may be set to a positive integer to limit the number of commands stored to it otherwise ( and by default ) the list of commands can grow arbitrarily .
function: def __init__(self, maxCommands=-1):
          """
          Constructor.  maxCommands may be set to a positive integer to limit
          the number of commands stored to it, otherwise (and by default) the
          list of commands can grow arbitrarily.
          """
          self._maxCommands = maxCommands
          self._editMenu = None
          self._undoAccelerator = _("Ctrl+Z")
          self._redoAccelerator = _("Ctrl+Y")
          self.ClearCommands()
function_tokens: def __init__ ( self , maxCommands = - 1 ) : self . _maxCommands = maxCommands self . _editMenu = None self . _undoAccelerator = _ ( "Ctrl+Z" ) self . _redoAccelerator = _ ( "Ctrl+Y" ) self . ClearCommands ( )