(self, extra=None, width: int = 70, indentStep: int = 4,
                 bulletTopic: str = '\\--', bulletTopicItem: str = '|==', bulletTopicArg: str = '-',
                 fileObj: TextIO = None)
Topic tree printer will print listeners for each topic only
        if printListeners is True. The width will be used to limit
        the width of text output, while indentStep is the number of
        spaces added each time the text is indented further. The
        three bullet parameters define the strings used for each
        item (topic, topic items, and kwargs).
Topic tree printer will print listeners for each topic only
        if printListeners is True. The width will be used to limit
        the width of text output, while indentStep is the number of
        spaces added each time the text is indented further. The
        three bullet parameters define the strings used for each
        item (topic, topic items, and kwargs).
Topic tree printer will print listeners for each topic only if printListeners is True . The width will be used to limit the width of text output while indentStep is the number of spaces added each time the text is indented further . The three bullet parameters define the strings used for each item ( topic topic items and kwargs ) .
def __init__(self, extra=None, width: int = 70, indentStep: int = 4,
                 bulletTopic: str = '\\--', bulletTopicItem: str = '|==', bulletTopicArg: str = '-',
                 fileObj: TextIO = None):
        """
        Topic tree printer will print listeners for each topic only
        if printListeners is True. The width will be used to limit
        the width of text output, while indentStep is the number of
        spaces added each time the text is indented further. The
        three bullet parameters define the strings used for each
        item (topic, topic items, and kwargs).
        """
        self.__contentMeth = dict(
            D=self.__printTopicDescription,
            A=self.__printTopicArgsAll,
            a=self.__printTopicArgNames,
            L=self.__printTopicListeners)
        assert self.allowedExtras == set(self.__contentMeth.keys())
        import sys
        self.__destination = fileObj or sys.stdout
        self.__output = []

        self.__content = extra or ''
        unknownSel = set(self.__content) - self.allowedExtras
        if unknownSel:
            msg = 'These extra chars not known: %s' % ','.join(unknownSel)
            raise ValueError(msg)

        self.__width = width
        self.__wrapper = TextWrapper(width)
        self.__indent = 0
        self.__indentStep = indentStep
        self.__topicsBullet = bulletTopic
        self.__topicItemsBullet = bulletTopicItem
        self.__topicArgsBullet = bulletTopicArg
def __init__ ( self , extra = None , width : int = 70 , indentStep : int = 4 , bulletTopic : str = '\\--' , bulletTopicItem : str = '|==' , bulletTopicArg : str = '-' , fileObj : TextIO = None ) : self . __contentMeth = dict ( D = self . __printTopicDescription , A = self . __printTopicArgsAll , a = self . __printTopicArgNames , L = self . __printTopicListeners ) assert self . allowedExtras == set ( self . __contentMeth . keys ( ) ) import sys self . __destination = fileObj or sys . stdout self . __output = [ ] self . __content = extra or '' unknownSel = set ( self . __content ) - self . allowedExtras if unknownSel : msg = 'These extra chars not known: %s' % ',' . join ( unknownSel ) raise ValueError ( msg ) self . __width = width self . __wrapper = TextWrapper ( width ) self . __indent = 0 self . __indentStep = indentStep self . __topicsBullet = bulletTopic self . __topicItemsBullet = bulletTopicItem self . __topicArgsBullet = bulletTopicArg