CoolFace
Apppublic

Aluode/PerceptionLabPortable

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

2�YiG�@s�dZddlZddlZe�d�Zdd�Zdd�Zejdd	d3dd��4Z	e4dd
�D]Zedkr1ee�nee�e	d7Z	e	��rCe
d�n	q&Wd�dSWd�dS1sWwYdS)zE5Using ProgressDialog to show progress updates in a nested process.6 7�NzProgress Dialog ExamplecCs�tjd|ddd��-}td�D]}t�d�|d7}|��r&td|�n	qWd�dSWd�dS1s:wYdS)	z@Waste time for 2 seconds while incrementing a progress bar.8    �Running stage %s..�dT)�maximum�nestedg{�G�z�?��Canceled stage %sN)�pg�ProgressDialog�range�time�sleep�wasCanceled�print��iZdlg�j�r��E:\DocsHouse\542 percep lab latest\PerceptionLab\PerceptionLab_Portable\python_embed\Lib\site-packages\pyqtgraph/examples/ProgressDialog.py�runStage
s9���"�rcCs�tjd|dddd��1}tdd�D]}td||f�|d7}|��r+td	|�n	qWd10�d11SWd12�d13S1s?wYd14S)zGIterate over runStage() 3 times while incrementing a progress bar.15    r�Tr�rr�waitr�z%d.%drN)rr	r16rr
rrrrr�
runManyStagess���"�rzDoing a multi-stage process..�Trr�rzCanceled process)�__doc__rZ	pyqtgraphrZmkQAppZapprrr	Zdlg1r17rr
rrrrr�<module>s(1819���"�
Aluode/PerceptionLabPortable · CoolFace