0fa9c2ab21ebaeb91466f146a43259e8b5b0cd05,Orange/canvas/report/owreport.py,OWReport,__init__,#OWReport#,16
Before Change
self.controlArea, self, "Print", callback=self._print_report
)
self.widget_list_items_schemas = {}
self.report_view_items = {}
self.report_view = gui.WebviewWidget(self.mainArea)
frame = self.report_view.page().mainFrame()
frame.setScrollBarPolicy(Qt.Vertical, Qt.ScrollBarAsNeeded)
self.javascript = frame.evaluateJavaScript
index_file = pkg_resources.resource_filename(__name__, "index.html")
self.report_html_template = open(index_file, "r").read()
After Change
name = "Report"
save_dir = Setting("")
def __init__(self):
super().__init__()
self.table_model = ReportItemModel(0, 3)
self.table = QTableView(self.controlArea)
self.table.setModel(self.table_model)
self.table.setShowGrid(False)
self.table.setSelectionBehavior(QTableView.SelectRows)
self.table.setSelectionMode(QTableView.SingleSelection)
self.table.setWordWrap(False)
self.table.setMouseTracking(True)
self.table.verticalHeader().setResizeMode(QHeaderView.Fixed)
self.table.verticalHeader().setDefaultSectionSize(20)
self.table.verticalHeader().setVisible(False)
self.table.horizontalHeader().setVisible(False)
self.table.setFixedWidth(252)
self.table.setColumnWidth(0, 200)
self.table.setColumnWidth(1, 25)
self.table.setColumnWidth(2, 25)
self.table.clicked.connect(self._table_clicked)
self.table.entered.connect(self._table_entered)
self.controlArea.layout().addWidget(self.table)
self.save_button = gui.button(
self.controlArea, self, "Save", callback=self._save_report
)
self.print_button = gui.button(
self.controlArea, self, "Print", callback=self._print_report
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 12
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: __init__
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: __init__
Project Name: biolab/orange3
Commit Name: 988ca547322b7e67240865fa4c631cd292c89db5
Time: 2013-08-27
Author: anze.staric@gmail.com
File Name: Orange/canvas/scheme/widgetsscheme.py
Class Name: WidgetsSignalManager
Method Name: __init__
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: __init__