
    e                     D    d dl mZ d dlmZ ddlmZ dgZ G d de      Zy)   )GraphicsLayout)mkQApp   )GraphicsViewGraphicsLayoutWidgetc                       e Zd ZdZddZy)r   a  
    Convenience class consisting of a :class:`GraphicsView 
    <pyqtgraph.GraphicsView>` with a single :class:`GraphicsLayout
    <pyqtgraph.GraphicsLayout>` as its central item. 

    This widget is an easy starting point for generating multi-panel figures.
    Example::
    
        w = pg.GraphicsLayoutWidget()
        p1 = w.addPlot(row=0, col=0)
        p2 = w.addPlot(row=0, col=1)
        v = w.addViewBox(row=1, col=0, colspan=2)
    
    =========  =================================================================
    parent     (QWidget or None) The parent widget.
    show       (bool) If True, then immediately show the widget after it is
               created. If the widget has no parent, then it will be shown
               inside a new window.
    size       (width, height) tuple. Optionally resize the widget. Note: if
               this widget is placed inside a layout, then this argument has no
               effect.
    title      (str or None) If specified, then set the window title for this
               widget.
    kargs      All extra arguments are passed to
               :meth:`GraphicsLayout.__init__
               <pyqtgraph.GraphicsLayout.__init__>`
    =========  =================================================================
        

    This class wraps several methods from its internal GraphicsLayout:
    :func:`nextRow <pyqtgraph.GraphicsLayout.nextRow>`
    :func:`nextColumn <pyqtgraph.GraphicsLayout.nextColumn>`
    :func:`addPlot <pyqtgraph.GraphicsLayout.addPlot>`
    :func:`addViewBox <pyqtgraph.GraphicsLayout.addViewBox>`
    :func:`addItem <pyqtgraph.GraphicsLayout.addItem>`
    :func:`getItem <pyqtgraph.GraphicsLayout.getItem>`
    :func:`addLabel <pyqtgraph.GraphicsLayout.addLabel>`
    :func:`addLayout <pyqtgraph.GraphicsLayout.addLayout>`
    :func:`removeItem <pyqtgraph.GraphicsLayout.removeItem>`
    :func:`itemIndex <pyqtgraph.GraphicsLayout.itemIndex>`
    :func:`clear <pyqtgraph.GraphicsLayout.clear>`
    Nc           	      \   t                t        j                  | |       t        di || _        dD ]#  }t        | |t        | j                  |             % | j                  | j                         | | j                  |  || j                  |       |du r| j                          y y )N)nextRownextCol
nextColumnaddPlot
addViewBoxaddItemgetItem	addLayoutaddLabel
removeItem	itemIndexclearT )r   r   __init__r   cisetattrgetattrsetCentralItemresizesetWindowTitleshow)selfparentr   sizetitlekargsns          H/usr/lib/python3/dist-packages/pyqtgraph/widgets/GraphicsLayoutWidget.pyr   zGraphicsLayoutWidget.__init__1   s    dF+ )5) b 	2AD!WTWWa01	2DGG$DKK&4<IIK     )NFNN)__name__
__module____qualname____doc__r   r   r&   r%   r   r      s    )Tr&   N)graphicsItems.GraphicsLayoutr   Qtr   r   __all__r   r   r&   r%   <module>r.      s"    9  &!
":< :r&   