129 self.header.setFont(boldFont) |
129 self.header.setFont(boldFont) |
130 self.header.setText(self.model.getName()) |
130 self.header.setText(self.model.getName()) |
131 self.header.setPos(x, y) |
131 self.header.setPos(x, y) |
132 y += self.header.boundingRect().height() + self.margin |
132 y += self.header.boundingRect().height() + self.margin |
133 if not self.noAttrs and not self.external: |
133 if not self.noAttrs and not self.external: |
|
134 # TODO: add class attributes next to the instance attributes |
|
135 # separate class and instance attributes by dashed line |
134 if attrs: |
136 if attrs: |
135 txt = "\n".join(attrs) |
137 txt = "\n".join(attrs) |
136 else: |
138 else: |
137 txt = " " |
139 txt = " " |
138 self.attrs = QGraphicsSimpleTextItem(self) |
140 self.attrs = QGraphicsSimpleTextItem(self) |