Ejemplo n.º 1
0
    def text_item(self):
        """return a canvas item for the text in the foreground"""
        item = QtWidgets.QGraphicsTextItem()

        f = item.font()
        f.setPointSize(7)
        item.setFont(f)
        self._set_text(item)

        return item
Ejemplo n.º 2
0
 def text_item(self):
     """return a canvas item for the text in the foreground"""
     return QtWidgets.QGraphicsTextItem(self.get_text())