CoolFace
Apppublic

Aluode/PerceptionLabPortable

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

2�YiJ�@sdZddlZddlmZmZe�d�Ze��Z	e	�3dd�e	�d�e��Z
e	�e
�e��Ze
�e�e	��ejdd	d4�aejdd	d5�ae��at�d�t�d�e�tdd�e�tdd�e�tdd
�dadadd�Ze��Zej �!e�e�"d�e#dkr�e�$�dSdS)z�6JoystickButton is a button with x/y values. When the button is depressed and the7mouse dragged, the x/y values change to follow the mouse.8When the mouse button is released, the x/y values change to 0,0 (rather like 9letting go of the joystick).10�N)�QtCore�	QtWidgetszJoystick Button Examplei,�2z!pyqtgraph example: JoystickButtonT�m)ZsiPrefix�suffix���cCs<t��\}}t|d7at|d7at�t�t�t�dS)Ng����MbP?)�jbZgetState�x�y�l1ZsetValue�l2)ZdxZdy�r��E:\DocsHouse\542 percep lab latest\PerceptionLab\PerceptionLab_Portable\python_embed\Lib\site-packages\pyqtgraph/examples/JoystickButton.py�update"s1112r�__main__)%�__doc__Z	pyqtgraphZpgZpyqtgraph.QtrrZmkQAppZappZQMainWindow�mw�resizeZsetWindowTitleZQWidgetZcwZsetCentralWidgetZQGridLayoutZlayoutZ	setLayout�showZ13ValueLabelr
rZJoystickButtonr14Z
setFixedWidthZsetFixedHeightZ	addWidgetrrrZQTimerZtimer�timeout�connect�start�__name__�execrrrr�<module>s:15161718192021�
Aluode/PerceptionLabPortable · CoolFace