def paintEvent(self, event):
        super(QTextLabel, self).paintEvent(event)
        rect = self.contentsRect()
        metrics = self.fontMetrics()
        # The +1 is to fix a seeming off-by-one error in elidedText.
        # https://github.com/nucleic/enaml/issues/38
        text = metrics.elidedText(self._text, Qt.ElideRight, rect.width() + 1)
        QPainter(self).drawText(rect, Qt.AlignLeft | Qt.AlignVCenter, text)
Call all necessary stop/close functions of children objects
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/docking/q_text_label.py/QTextLabel.paintEvent--crossover with--dataset/ETHPy150Open ericgibert/supersid/supersid/supersid_scanner.py/SuperSID_scanner.close