;ip >ddlmZdgZGddejZdS)) QtWidgets LayoutWidgetcLeZdZdZd dZdZddZdZdd Zdd Z dd Z d Z dS)rz Convenience class used for laying out QWidgets in a grid. (It's just a little less effort to use than QGridLayout) Nctj||tj|_||ji|_i|_d|_d|_ dS)N) rQWidget__init__ QGridLayoutlayout setLayoutitemsrows currentRow currentCol)selfparents RC:\PYTHON\MyICR_Workspace\venv\Lib\site-packages\pyqtgraph/widgets/LayoutWidget.pyr zLayoutWidget.__init__ s_""4000+--  t{###  c4|xjdz c_d|_dS)z2Advance to next row for automatic widget placementrN)rr)rs rnextRowzLayoutWidget.nextRows 1rrc6|xj|z c_|j|z S)zAdvance to next column, while returning the current column number (generally only for internal use--called by addWidget))r)rcolspans r nextColumnzLayoutWidget.nextColumns! 7"w&&rc|j|i|S)zAlias of nextColumn)r)rargskargss rnextColzLayoutWidget.nextColst....r c \tj|fi|}|||||||S)z Create a QLabel with *text* and place it in the next available cell (or in the cell specified) All extra keyword arguments are passed to QLabel(). Returns the created widget. )rQLabel addWidget)rtextrowcolrowspanrrs raddLabelzLayoutWidget.addLabel#s; .... tS#w888 rc Ptdi|}|||||||S)a Create an empty LayoutWidget and place it in the next available cell (or in the cell specified) All extra keyword arguments are passed to :func:`LayoutWidget.__init__ ` Returns the created widget. )rr")rr$r%r&rrr s r addLayoutzLayoutWidget.addLayout-s6 &&&& vsC'::: rc$|dkr||j}n ||j}|||}||jvr i|j|<||j||<||f|j|<|j|||||dS)zp Add a widget to the layout and place it in the next available cell (or in the cell specified). nextN)rrrrr r r")ritemr$r%r&rs rr"zLayoutWidget.addWidget7s &== LLNNN/CC [/C ;,,w''C di  DIcN" #s: 4 dCgw?????rc(|j||S)z#Return the widget in (*row*, *col*))r)rr$r%s r getWidgetzLayoutWidget.getWidgetLsy~c""r)N)r)rNNrr)NNrr) __name__ __module__ __qualname____doc__r rrrr'r*r"r/r)rrrrs  '''' /// @@@@*#####rN)Qtr__all__rrr)rrr6s`  J#J#J#J#J#9$J#J#J#J#J#r