icon)] = self._get_scheme()
def _build_html(self):
n_widgets = len(self.widget_list_items)
if not n_widgets:
self.report_view.setHtml("")
return
selected_row = self.widget_list.currentRow()
if selected_row < 0 and n_widgets:
selected_row = n_widgets - 1
self.widget_list.setCurrentRow(selected_row)
html = self.report_html_template
html += "<body>"
After Change
html = self.report_html_template
html += "<body>"
for i in range(self.table_model.rowCount()):
item = self.table_model.item(i)
html += "<div id="%s" class="normal" " \
"onClick="pybridge._select_item(this.id)">%s</div>" % \
(item.id, item.html)
html += "</body></html>"