~repos /sabel-ide

#python#qt

git clone https://pyrossh.dev/repos/sabel-ide.git

sabel-ide



file:

Widget/adb.pyc



�
�6pPc@sxddlmZddlmZddlmZmZmZmZm Z m
Z
ddl m Z defd��YZ dS(i����(tconfig(tQWidget(t
pyqtSignaltSIGNALtQThreadtQProcesstQStringtQTimer(t
WorkThreadtAdbcBs_eZeZd�Zd�Zd�Zd�Zd�Zd�Z d�Z
d�Z d�Z RS( cCs�tj||�||_t�|_tj�|_d|_|j �|j
|jt d�|j �|j
|jt d�|j �dS(Nttupdatetfini(Rt__init__tparentRt
adb_threadRtadbtadblisttdevicet setDevicetconnectRR tnewstart(tselfR((sC:\CODE\Sabel\Widget\adb.pyR s   
cCs�tj�dkrd|_n d|_d|jd|jd|_d|jd|jd|_d|jd|jd |_d|jd
|_d|jd |_dS( Nis -d s -e Rspush is0shell am start -a android.intent.action.MAIN -n s
logcat -s is+shell pm disable com.emo_framework.exampless*shell pm enable com.emo_framework.examples(RRRtcmd1tcmd2tcmd3tcmd4tcmd5(R((sC:\CODE\Sabel\Widget\adb.pyRs  cCs�tj�|_d|jd|jd|_d|jd|jd|_d|jd|jd|_d|jd|_d|jd |_dS(
NRspush is0shell am start -a android.intent.action.MAIN -n is
logcat -s is+shell pm disable com.emo_framework.exampless*shell pm enable com.emo_framework.examples( RRRRRRRRR(R((sC:\CODE\Sabel\Widget\adb.pyt
setAdbLists cCs$|jjj|�|jj�dS(N(RttextEdittappendt popOutput(Rtline((sC:\CODE\Sabel\Widget\adb.pyR 'scCsN|jj�|dkr3|jjjd|�n|jjjd|�dS(Nis
Finished: sError: (Rt progressStopRR(Rtnotcmd((sC:\CODE\Sabel\Widget\adb.pyt checkFinished+s  cCs]|j||�|jj�||jkrO|jj|j�|jj�n
||jkr�|jj|j�|jj �|jj
�n�||jkr�|jj|j �|jj�n�||j kr�|jj|j �|jj�ng||j krY|jj j�s&|jj j�n|jjjjt�|jj �|jj�ndS(N(R$Rt progressStartRRtsetCmdRtrunRR!trun2RRtoutputTabWidgettisHiddenthidettoolBart
action_Runt
setEnabledtTruet statusWriting(RR"R#((sC:\CODE\Sabel\Widget\adb.pyR2s*   cCs�|jtkrdt|_|jjjjt�|jjjjt�|jj �|jj
j �n|jj
j d�|j j|j�|jj�|jj�|j j�dS(NsPushing main.nut...
(t isRunningtFalseR/RR,R-t setDisabledt action_StopR.RRtclearRRR&Rt statusRunningR%R'(R((sC:\CODE\Sabel\Widget\adb.pyR'Is    cCsb|jtkr^t|_|jjjjt�|jjjd�|jj �|j
j �ndS(NsStopped.( R1R/R2RR,R4R3RRtstatusStoppingRt close_process(R((sC:\CODE\Sabel\Widget\adb.pytstopVs   cCs+|jj�|jj�|jj�dS(N(Rt kill_processR8tquit(R((sC:\CODE\Sabel\Widget\adb.pytclosebs  ( t__name__t
__module__R2R1R RRR R$RR'R9R<(((sC:\CODE\Sabel\Widget\adb.pyR s     N(tglobalsRt PyQt4.QtGuiRt PyQt4.QtCoreRRRRRRt
workthreadRR (((sC:\CODE\Sabel\Widget\adb.pyt<module>s.