Exemplo n.º 1
0
 def paint(self, painter, option, widget):
     """
     :param painter:
     :param option:
     :param widget:
     :raise:
     """
     if ctrl.pressed is self:
         pass
     painter.setPen(self.contextual_color())
     draw_x(painter, 0, 0, end_spot_size)
Exemplo n.º 2
0
 def paint(self, painter, option, widget):
     """
     :param painter:
     :param option:
     :param widget:
     :raise:
     """
     if ctrl.pressed is self:
         pass
     painter.setPen(self.contextual_color())
     draw_x(painter, 0, 0, end_spot_size)
Exemplo n.º 3
0
    def paint(self, painter, option, widget):
        """

        :param painter:
        :param option:
        :param widget:
        :raise:
        """
        if ctrl.pressed is self:
            pass
        c = self.contextual_color()
        p = QtGui.QPen(c)
        p.setWidth(3 if self._hovering else 1)
        painter.setPen(p)
        draw_x(painter, 0, 0, symbol_radius)
Exemplo n.º 4
0
    def paint(self, painter, option, widget):
        """

        :param painter:
        :param option:
        :param widget:
        :raise:
        """
        if ctrl.pressed is self:
            pass
        c = self.contextual_color()
        painter.setPen(c)
        draw_triangle(painter, 0, 0)
        if self._hovering:
            painter.setPen(c)
            draw_x(painter, 0, 0, end_spot_size)
Exemplo n.º 5
0
    def paint(self, painter, option, widget):
        """

        :param painter:
        :param option:
        :param widget:
        :raise:
        """
        if ctrl.pressed is self:
            pass
        c = self.contextual_color()
        painter.setPen(c)
        #draw_triangle(painter, 0, 0)
        draw_x(painter, 0, 0, end_spot_size / 2)
        if self._hovering:
            p = QtGui.QPen(c)
            p.setWidth(2)
            painter.setPen(p)
            draw_x(painter, 0, 0, end_spot_size)