Orange Forum • View topic - OWScatterPlotMatrix.py with more tabs

OWScatterPlotMatrix.py with more tabs

A place to ask questions about methods in Orange and how they are used and other general support.

OWScatterPlotMatrix.py with more tabs

Postby Guest » Fri Nov 16, 2007 13:53

HI!
I'm trying to change OWScatterPlotMatrix.py, so that I could have two tabs in mainArea. First would show normal ScatterPlotMatrix, second would show Data Table. Any ideas that I can use?

I tried:

self.layout = QVBoxLayout(self.mainArea)
tabs = QTabWidget(self.mainArea, 'tabs')

and then

tab = QVGroupBox(self)
self.table = QTable(tab)
tabs.insertTab(tab, "Table")

but I don't know what now.

Postby Gregor Leban » Fri Nov 23, 2007 9:53

well, I guess you will have to create another tab and modify the line in OWScatterplotMatrix that says:

self.grid = QGridLayout(self.mainArea)

into

self.grid = QGridLayout(nameOfTheNewTab)

I do, however, hope that you know why are you doing all this. You could, of course, simply use scatterplot matrix and data table widget. Even if you plan to show in your data table some subset of the data, you could just modify the scatterplot matrix so that it would send the data that you wish to show and then connect this widget to the data table widget.


Return to Questions & Support



cron