code: def paintEvent(self, event):
          
          painter = QPainter(self)
          painter.setRenderHint(QPainter.Antialiasing)
          # Decoration
          painter.fillPath(self.path_current, QBrush(self.color))
          painter.strokePath(self.path_decoration, QPen(self.color_decoration,
                                                        self.stroke_decoration))
docs: Override Qt method