mirror of
https://github.com/bkerler/mtkclient.git
synced 2025-02-25 22:14:31 -05:00
Remove guilogger class
This commit is contained in:
parent
eb07ebdc6b
commit
0c0143d0aa
1 changed files with 0 additions and 24 deletions
24
mtk_gui
24
mtk_gui
|
@ -22,30 +22,6 @@ from mtkclient.gui.toolkit import *
|
|||
from mtkclient.config.payloads import pathconfig
|
||||
from mtkclient.gui.main_gui import *
|
||||
# TO do Move all GUI modifications to signals!
|
||||
|
||||
class guiLogger:
|
||||
global guiState
|
||||
|
||||
def info(text):
|
||||
sendToLog(text)
|
||||
# grab useful stuff from this log
|
||||
# if ("\tCPU:" in text):
|
||||
# phoneInfo['chipset'] = text.replace("\t","").replace("CPU:","").replace("()","")
|
||||
# elif ("BROM mode detected" in text):
|
||||
# phoneInfo['bootMode'] = "In Bootrom"
|
||||
# if (guiState == "welcome") and (phoneInfo['chipset'] is not ""):
|
||||
# phoneInfoTextbox.setText("Phone detected:\n" + phoneInfo['chipset']+"\n"+phoneInfo['bootMode'])
|
||||
|
||||
def debug(text):
|
||||
sendToLog(text)
|
||||
|
||||
def error(text):
|
||||
sendToLog(text)
|
||||
|
||||
def setLevel(logLevel):
|
||||
return True
|
||||
|
||||
|
||||
# install exception hook: without this, uncaught exception would cause application to exit
|
||||
sys.excepthook = trap_exc_during_debug
|
||||
|
||||
|
|
Loading…
Reference in a new issue