(self, topicObj: Topic)
This gets called for each topic. Print as per specified content.
This gets called for each topic. Print as per specified content.
This gets called for each topic . Print as per specified content .
def _onTopic(self, topicObj: Topic):
        """This gets called for each topic. Print as per specified content."""
        # don't print root of tree, it is the ALL_TOPICS builtin topic
        if topicObj.isAll():
            self.__lastWasAll = True
            return
        self.__lastWasAll = False

        self.__output.append('')  # empty line
        # topic name
        self.__wrapper.width = self.__width
        head = 'class %s:' % topicObj.getNodeName()
        self.__formatItem(head)

        # each extra content (assume constructor verified that chars are valid)
        self.__printTopicDescription(topicObj)
        self.__printTopicArgSpec(topicObj)
def _onTopic ( self , topicObj : Topic ) : # don't print root of tree, it is the ALL_TOPICS builtin topic if topicObj . isAll ( ) : self . __lastWasAll = True return self . __lastWasAll = False self . __output . append ( '' ) # empty line # topic name self . __wrapper . width = self . __width head = 'class %s:' % topicObj . getNodeName ( ) self . __formatItem ( head ) # each extra content (assume constructor verified that chars are valid) self . __printTopicDescription ( topicObj ) self . __printTopicArgSpec ( topicObj )