def changeSelectionStyle(self, style): """Choose the style used to select data, by rows, columns or other options.""" combo_box = self.sender() if isinstance(combo_box, QComboBox): selection_style = combo_box.itemData(style) self.graph.setSelectionMode( QAbstract3DGraph.SelectionFlags(selection_style))
def changeShadowQuality(self, quality): sq = QAbstract3DGraph.ShadowQuality(quality) self.m_graph.setShadowQuality(sq)
def changeSelectionMode(self, selectionMode): comboBox = self.sender() if isinstance(comboBox, QComboBox): flags = comboBox.itemData(selectionMode) self.m_graph.setSelectionMode( QAbstract3DGraph.SelectionFlags(flags))