def showResults self self setUiElementsEnabled True res self worker da

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
### ....
def showResults(self):
self.setUiElementsEnabled(True)
res = self.worker.data
res_count = len(res)
if res_count == 0:
self.ui.statusLabel.setText(u"Ничего не найдено.")
else:
self.ui.statusLabel.setText(u"Найдено: %d" % res_count)
self.model.setResultset(res)