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)
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)
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)
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)