예제 #1
0
    def __init__(self, orientation=QtCore.Qt.Horizontal):
        QtGui.QWidget.__init__(self)

        self.color_points = {}
        self.colormap_name = ""
        self.colormap_painter = PainterColormap()
        self.orientation = orientation
예제 #2
0
 def paint(self, control, shape=None):
     if shape == 'hline':
         return PainterColormap()