Ejemplo n.º 1
0
 def onBtnFind(self):
     srcpath=self._ui.edit_src.text()
     tokpath=self._ui.edit_tok.text()
     func=self._ui.edit_func.text()
     self._fdict=getTestFuncInfo(srcpath,tokpath,func)
     lw=self._ui.listWidget
     lw.clear()
     if len(self._fdict[func])>0:
         for finfo in self._fdict[func]:
             lw.insertItem(lw.count(),'%s\t%s'%(_fromUtf8(finfo['decl']),_fromUtf8(finfo['srcfile'])))
     else:
         lw.insertItem(0,_fromUtf8("Cannot found the function"))
Ejemplo n.º 2
0
 def formatTxt(self,funcname,finfo):
     outtxt=formatExcelText(funcname,finfo)
     self._clip.setText(_fromUtf8(outtxt))
     QMessageBox.information(self,_fromUtf8("Output"),_fromUtf8("Copied into Clipboard"))
Ejemplo n.º 3
0
 def onBtnTok(self):
     tokpath=QFileDialog.getExistingDirectory(self,_fromUtf8("Choose Output Token Folder"))
     self._ui.edit_tok.setText(tokpath)
Ejemplo n.º 4
0
 def onBtnSrc(self):
     srcpath=QFileDialog.getExistingDirectory(self,_fromUtf8("Choose Input Source Folder"))
     self._ui.edit_src.setText(srcpath)