0fa9c2ab21ebaeb91466f146a43259e8b5b0cd05,Orange/canvas/report/owreport.py,OWReport,_build_html,#OWReport#,96
Before Change
html = self.report_html_template
html += "<body>"
for i, (item_name, item_icon) in enumerate(self.widget_list_items):
html += "<div id="%s" class="%s">%s</div>" % (
id(item_icon),
"selected" if i == selected_row else "normal",
self.report_view_items[(item_name, item_icon)]
)
html += "</body></html>"
self.report_view.setHtml(html)
if selected_row < len(self.widget_list_items):
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>"
self.report_view.setHtml(html)
def _scroll_to_item(self, item):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: biolab/orange3
Commit Name: 0fa9c2ab21ebaeb91466f146a43259e8b5b0cd05
Time: 2015-12-04
Author: tankovesna@hotmail.com
File Name: Orange/canvas/report/owreport.py
Class Name: OWReport
Method Name: _build_html
Project Name: dmlc/dgl
Commit Name: cf8a3fb30547d6e980ecd8182f64a51df8e55c62
Time: 2021-02-10
Author: expye@outlook.com
File Name: python/dgl/backend/pytorch/tensor.py
Class Name:
Method Name: pack_padded_tensor
Project Name: biolab/orange3
Commit Name: 2dcfbc69466198929f81fcdb4c5ca06ace7b1d2e
Time: 2015-10-30
Author: tankovesna@hotmail.com
File Name: Orange/canvas/report/owreport.py
Class Name: OWReport
Method Name: _build_html