def __init__(self, parent=None, orientation='bottom', *args, **kargs):
    "\n        The *orientation* argument may be 'bottom', 'top', 'left', or 'right' \n        indicating whether the gradient is displayed horizontally (top, bottom)\n        or vertically (left, right) and on what side of the gradient the editable \n        ticks will appear.\n        \n        All other arguments are passed to \n        :func:`GradientEditorItem.__init__ <pyqtgraph.GradientEditorItem.__init__>`.\n        \n        Note: For convenience, this class wraps methods from \n        :class:`GradientEditorItem <pyqtgraph.GradientEditorItem>`.\n        "
    GraphicsView.__init__(self, parent, useOpenGL=False, background=None)
    self.maxDim = 31
    kargs['tickPen'] = 'k'
    self.item = GradientEditorItem(*args, **kargs)
    self.item.sigGradientChanged.connect(self.sigGradientChanged)
    self.item.sigGradientChangeFinished.connect(self.sigGradientChangeFinished)
    self.setCentralItem(self.item)
    self.setOrientation(orientation)
    self.setCacheMode(self.CacheNone)
    self.setRenderHints((QtGui.QPainter.Antialiasing | QtGui.QPainter.TextAntialiasing))
    self.setFrameStyle((QtGui.QFrame.NoFrame | QtGui.QFrame.Plain))
The *orientation* argument may be 'bottom', 'top', 'left', or 'right' 
indicating whether the gradient is displayed horizontally (top, bottom)
or vertically (left, right) and on what side of the gradient the editable 
ticks will appear.

All other arguments are passed to 
:func:`GradientEditorItem.__init__ <pyqtgraph.GradientEditorItem.__init__>`.

Note: For convenience, this class wraps methods from 
:class:`GradientEditorItem <pyqtgraph.GradientEditorItem>`.
def __init__(self, parent=None, orientation='bottom', *args, **kargs):
    "\n        The *orientation* argument may be 'bottom', 'top', 'left', or 'right' \n        indicating whether the gradient is displayed horizontally (top, bottom)\n        or vertically (left, right) and on what side of the gradient the editable \n        ticks will appear.\n        \n        All other arguments are passed to \n        :func:`GradientEditorItem.__init__ <pyqtgraph.GradientEditorItem.__init__>`.\n        \n        Note: For convenience, this class wraps methods from \n        :class:`GradientEditorItem <pyqtgraph.GradientEditorItem>`.\n        "
    GraphicsView.__init__(self, parent, useOpenGL=False, background=None)
    self.maxDim = 31
    kargs['tickPen'] = 'k'
    self.item = GradientEditorItem(*args, **kargs)
    self.item.sigGradientChanged.connect(self.sigGradientChanged)
    self.item.sigGradientChangeFinished.connect(self.sigGradientChangeFinished)
    self.setCentralItem(self.item)
    self.setOrientation(orientation)
    self.setCacheMode(self.CacheNone)
    self.setRenderHints((QtGui.QPainter.Antialiasing | QtGui.QPainter.TextAntialiasing))
    self.setFrameStyle((QtGui.QFrame.NoFrame | QtGui.QFrame.Plain))