Example #1
0
 def resetActionExec(self, window, item):
     msg = QtGui.QMessageBox()
     msg.setText(QtGui.QApplication.translate(
                             "ImportWindow", "Are you sure you want to reset selected serie?", None,
                             QtGui.QApplication.UnicodeUTF8))
     msg.setStandardButtons(msg.No | msg.Yes)
     msg.setDefaultButton(msg.No)
     msg.show()
     msgResult = msg.exec_()
     if msgResult == msg.Yes:
         series = self.getSeriesFromItem(item)
         reset = Reset(self)
         reset.processReset(series[0])