def paintEvent(self, event):
        if self.promptVisible:
            painter = QtGui.QPainter(self)
            painter.setFont(self.promptFont)
            painter.drawText(self.rect(),
                             QtCore.Qt.AlignCenter | QtCore.Qt.TextWordWrap,
                             self.promptText)
            painter.end()
        QtGui.QLabel.paintEvent(self, event)
        # super(QPromptWidget, self).paintEvent(event)
paintEvent(event: QPaintEvent) -> None
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/common_widgets.py/QPromptWidget.paintEvent