Orange Forum • View topic - with more tabs with more tabs

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

Postby Guest » Fri Nov 16, 2007 13:53

I'm trying to change, 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)


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