def paintEvent(self, e):  # noqa
        """ Internal QT paint event, draws the entire widget """
        qp = QPainter()
        qp.begin(self)
        self._draw(qp)
        qp.end()
 Internal QT paint event, draws the entire widget 
metadrive/render_pipeline/toolkit/day_time_editor/curve_widget.py