;iR TddlmZddlmZmZmZddlmZdgZGddeZdS))GradientEditorItem)QtCoreQtGui QtWidgets) GraphicsViewGradientWidgetcteZdZdZejeZejeZd dZ dZ d dZ dZ dZ dS) r z Widget displaying an editable color gradient. The user may add, move, recolor, or remove colors from the gradient. Additionally, a context menu allows the user to select from pre-defined gradients. Nbottomctj||ddd|_d|d<t|i||_|jj|j|jj|j||j| || |j j | tjjjtjjjzt&jjjt&jjjz}||dS)a* 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__ `. Note: For convenience, this class wraps methods from :class:`GradientEditorItem `. FN) useOpenGL backgroundktickPen)r__init__maxDimritemsigGradientChangedconnectsigGradientChangeFinishedsetCentralItemsetOrientation setCacheMode CacheModeFlag CacheNonesetRenderHintsrQPainter RenderHint AntialiasingTextAntialiasingrQFrameShapeNoFrameShadowPlain setFrameStyle)selfparent orientationargskargs frame_styles TC:\PYTHON\MyICR_Workspace\venv\Lib\site-packages\pyqtgraph/widgets/GradientWidget.pyrzGradientWidget.__init__s dFeMMMM i&666  $,,T-DEEE +33D4RSSS DI&&& K((( $,6777 EN5BU^E^Eooppp&,4y7G7N7TT  ;'''''cp|j|||_|dS)z^Set the orientation of the widget. May be one of 'bottom', 'top', 'left', or 'right'.N)rrr* setMaxDim)r(orts r.rzGradientWidget.setOrientation1s8   %%% r/c||j}n||_|jdvr,|||ddS|||ddS)N)r topi)rr*setFixedHeightsetMaximumWidth setFixedWidthsetMaximumHeight)r(mxs r.r1zGradientWidget.setMaxDim8s :BBDK  0 0 0    # # #   * * * * *   r " " "  ! !( + + + + +r/c,t|j|SN)getattrr)r(attrs r. __getattr__zGradientWidget.__getattr__Esty$'''r/c*|j|j|jfSr;)r saveState restoreState)r(s r.widgetGroupInterfacez#GradientWidget.widgetGroupInterfaceIs'9JKKr/)Nr r;)__name__ __module__ __qualname____doc__rSignalobjectrrrrr1r>rBr/r.r r s 'v.. - f 5 5((((@ , , , ,(((LLLLLr/N) graphicsItems.GradientEditorItemrQtrrrr__all__r rIr/r.rMsAAAAAA))))))))))&&&&&&  BLBLBLBLBL\BLBLBLBLBLr/