;i&dZddlZddlmZejdZejZe e de ddddej Z ee ejZede eejd Zejd d Zejdd d Zejd ZedejdZeeddeeddeeddeeddeeddedkrejdSdS)zp Demonstrates the appearance / interactivity of GradientWidget (without actually doing anything useful with it) N) QtWidgetszGradiant Widget Examplez!pyqtgraph example: GradientWidget 2itop) orientationrightF)rallowAddbottom)rr allowRemoveleftspectrumaw - Click a triangle to change its color - Drag triangles to move - Right-click a gradient to load triangle presets - Click in an empty area to add a new color (adding is disabled for the bottom-side and right-side widgets) - Right click a triangle to remove (only possible if more than two triangles are visible) (removing is disabled for the bottom-side widget) __main__)__doc__ pyqtgraphpg pyqtgraph.QtrmkQAppapp QMainWindowwshowsetWindowTitle setGeometryQWidgetcwsetCentralWidget QGridLayoutl setSpacing setLayoutGradientWidgetw1w2w3w4 loadPresetQLabellabel addWidget__name__execUC:\PYTHON\MyICR_Workspace\venv\Lib\site-packages\pyqtgraph/examples/GradientWidget.pyr1s """"""bi)**I4555 b"c3Y2I Q QR5)))R7U;;;R8eOOOR6*** j     B1 B1 B1 B1 E1a z BGIIIIIr/