data,excd=process.communicate()
if excd is not None or len(data)<17:
self.s_pbar.setFormat('Search Failed!!')
+ self.s_clearResults()
+ self.s_lcd_results.display(0)
return
if data.split('\n')[0]=='No matches found':
self.s_pbar.setFormat('No matches found!!')
+ self.s_clearResults()
+ self.s_lcd_results.display(0)
return
self.s_pbar.setValue(0)
self.s_pbar.setFormat('Processing Data: Pass 1/2...')
model.setHorizontalHeaderLabels(['Category|Overlay','Name|Version Type','Description|Version','Homepage|Use Flags' ])
return model
+ def s_clearResults(self):
+ model=self.s_createResultsModel()
+ self.s_tv_results.setModel(model)
+
def s_addResults(self,results):
model=self.s_createResultsModel()
prog=1