CoolFace
Apppublic

Aluode/PerceptionLabPortable

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
InteractiveParameter.cpython-310.pyc23 linesDownload Raw Back to __pycache__
1o

2�Yi&�@s�ddlmZddlZddlmZddlmZmZm	Z	m3Z4mZe��Z
Gdd�d�Zdd�Zejd	d5d�Zeee	jd�Ze��ed6dd���Ze��ed7dd���Zejdd�ed8dd���Zejdgd�ed9dd���Zeje	jd�ed9dd ���Zd
Zed8d!d"��Ze6ed#d$d%�id&�ZdZee�ejej d'��e��ed:d(d)���Z!Wd�n1s�wYeje	je	jfd*gd+�d,�d-�ed:d.d/���Z"ejd0d1�ed;d3d4���Z#e�Z$e$�%e�e$�&�e'd5kr�e�(�dSdS)<���wrapsN)�	QtWidgets)�	Parameter�
ParameterTree�7RunOptions�InteractiveFunction�8Interactorc@seZdZdZdZdS)�LAST_RESULTzJust for testing purposesN)�__name__�9__module__�__qualname__�__doc__�value�rr��E:\DocsHouse\542 percep lab latest\PerceptionLab\PerceptionLab_Portable\python_embed\Lib\site-packages\pyqtgraph/examples/InteractiveParameter.pyr10sr11cst���fdd��}|S)Ncs2�|i|��t_tj�tj��ddtj���dS)Nz
Function Run!z
Func result: )r12rrZQMessageBox�informationZQApplicationZactiveWindow)�args�kwargs��funcrr�wrappers13�zprintResult.<locals>.wrapperr)rrrrr�printResultsrzInteractive Parameter Use�group)�name�type)�parent�14runOptions��cC�||S�Nr��a�brrr�15easySample'�r%�5�6cCr r!rr"rrr�stringParams-r&r)�16�r#cCr r!rr"rrr�
requiredParam3r&r,r#)Zignores�cCs||Sr!rr"rrr�
ignoredAParam9r&r.)rcCr r!rr"rrr�runOnButton?r&r/cCr r!r)�x�yrrr�accessVarInDifferentScopeHsr2r0cCstSr!)r0rrrr�<lambda>Nsr3)Zclosures)ZtitleFormatcC�|Sr!rr+rrr�
capslocknamesW�r5�list)rr*r-)rZlimits)rr#cCr4r!rr+rrr�runOnBtnOrChange_listOpts]sr8F)�nestTcCr4r!r)ZthisIsAFunctionArgrrr�onlyTheArgumentsAppearfr6r:�__main__)rr)r'r()r*)r*r-)r)T))�	functoolsrZ	pyqtgraphZpgZpyqtgraph.QtrZpyqtgraph.parametertreerrrrr	ZmkQAppZappr17r�create�hostZ18ON_CHANGEDZ19interactorZdecorater%r)r,r.Z	ON_ACTIONr/r0r2Zfunc_interactiveZoptsContext�str�upperr5r8r:�treeZ
setParameters�showr�execrrrr�<module>sh
20��21�2223�