parameters: (self, editor, editorName=None)
docstring: Transform class into instance, if necessary.
docstring_summary: Transform class into instance, if necessary.
docstring_tokens: Transform class into instance if necessary .
function: def RegisterEditor(self, editor, editorName=None):
          "Transform class into instance, if necessary."
          if not isinstance(editor, PGEditor):
              editor = editor()
          if not editorName:
              editorName = editor.__class__.__name__
          try:
              self._editor_instances.append(editor)
          except:
              self._editor_instances = [editor]
          RegisterEditor(editor, editorName)
function_tokens: def RegisterEditor ( self , editor , editorName = None ) : if not isinstance ( editor , PGEditor ) : editor = editor ( ) if not editorName : editorName = editor . __class__ . __name__ try : self . _editor_instances . append ( editor ) except : self . _editor_instances = [ editor ] RegisterEditor ( editor , editorName )