def onWriteExcel(self): efile = excel.open('file.xls') sytleR = excel.createSytle('red', True) sytleY = excel.createSytle('yellow', True) for i in range(10000): excel.write(efile, 'sheet', ['NAME', 'DATE'], [sytleR, sytleY]) excel.setColWidth(efile, 'sheet', [4, 4, 4, 4]) excel.close(efile) util.run('file.xls') print 'success'
def clearLogcat(self): cmd = 'adb logcat -c' util.run(cmd)
def install(self, apk): util.run('adb install -r ' + apk)
def onShowFtrace(self): util.run("cd Tool\\ftrace.jb && M-show.bat") pass
def onOpenExplorer(self): if self.apkFile != None: apkDir = os.path.dirname(self.apkFile) + '\\apkOutput' util.run('explorer.exe '+ apkDir) pass
def OnSimple(self, event): print event #self.runCmdCbk("ping 127.0.0.1 -n 10", None, self.OnCmdCbk) util.run('calc')