0fa9c2ab21ebaeb91466f146a43259e8b5b0cd05,Orange/canvas/report/owreport.py,OWReport,__init__,#OWReport#,16
Before Change
def __init__(self):
super().__init__()
// TODO - ko kliknes na webview, oznaci item
self.widget_list_items = []
self.widget_list = gui.listBox(
self.controlArea, self,
labels="widget_list_items", callback=self._reload,
enableDragDrop=True, dragDropCallback=self._reload
)
self.widget_list.setContextMenuPolicy(Qt.CustomContextMenu)
self.widget_list.customContextMenuRequested.connect(self._show_menu)
self.save_button = gui.button(
self.controlArea, self, "Save",
callback=self._save_report, default=True
)
self.print_button = gui.button(
self.controlArea, self, "Print", callback=self._print_report
)
self.widget_list_items_schemas = {}
self.report_view_items = {}
self.report_view = gui.WebviewWidget(self.mainArea)
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
)
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: 3d0a31a8cbdaf90434d732259fa17bc6bd703a0b
Time: 2016-04-01
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/classify/owknn.py
Class Name: OWKNNLearner
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__