qgpib_plotter.py

changeset 26
e8f3c9276f3f
parent 25
32d0d1cd44c3
child 27
0f8f2621418f
equal deleted inserted replaced
25:32d0d1cd44c3 26:e8f3c9276f3f
69 69
70 def currentPlotChanged(self, index, old_index=None): 70 def currentPlotChanged(self, index, old_index=None):
71 if index.isValid(): 71 if index.isValid():
72 value = unicode(self.plotsView.model().data(index, Qt.DisplayRole).toString()) 72 value = unicode(self.plotsView.model().data(index, Qt.DisplayRole).toString())
73 73
74 #self.plotterWidget = QHPGLPlotterWidget(self)
75 #self.setCentralWidget(self.plotterWidget)
76 self.plotterWidget.clear() 74 self.plotterWidget.clear()
77 self.plotterWidget.parse(self._plots[value]) 75 self.plotterWidget.parse(self._plots[value])
78 76
79 def preferencesTriggered(self, checked=False): 77 def preferencesTriggered(self, checked=False):
80 PreferencesEditor(self._prefs, self).exec_() 78 PreferencesEditor(self._prefs, self).exec_()

mercurial