def __init__(self, orientation=QtCore.Qt.Horizontal): QtGui.QWidget.__init__(self) self.color_points = {} self.colormap_name = "" self.colormap_painter = PainterColormap() self.orientation = orientation
def paint(self, control, shape=None): if shape == 'hline': return PainterColormap()