Exemple #1
0
 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))
Exemple #2
0
 def changeShadowQuality(self, quality):
     sq = QAbstract3DGraph.ShadowQuality(quality)
     self.m_graph.setShadowQuality(sq)
Exemple #3
0
 def changeSelectionMode(self, selectionMode):
     comboBox = self.sender()
     if isinstance(comboBox, QComboBox):
         flags = comboBox.itemData(selectionMode)
         self.m_graph.setSelectionMode(
             QAbstract3DGraph.SelectionFlags(flags))