Ejemplo n.º 1
0
    def __init__(self, parent=None):
        QtGui.QDialog.__init__(self,parent)
        self.ui = prec_dlg()
        self.ui.setupUi(self)
        self.ui.harma.setText('1')
        self.ui.harmb.setText('11')
        self.ui.lip.setText('1.5')
        self.ui.aip.setText('1.5')
        self.ui.flux.setCurrentIndex(0)

        self.ui.prefact.setText('1.5')
        self.ui.field.setCurrentIndex(0)
        self.ui.ilp.setText('0')
        self.ui.flp.setText('0')
        self.ui.np.setText('20000')
Ejemplo n.º 2
0
    def __init__(self, parent=None,units=None,column=None):
        QtGui.QDialog.__init__(self,parent)
        self.ui = prec_dlg()
        self.ui.setupUi(self)
        self.u = units
        if column is not None:
            self.ui.harma.setText(str(column[0].value))
            self.ui.harmb.setText(str(column[1].value))
            self.ui.lip.setText(str(column[2].value))
            self.ui.aip.setText(str(column[3].value))
            self.ui.flux.setCurrentIndex(int(column[4].value))

            self.ui.prefact.setText(str(column[5].value))
            self.ui.field.setCurrentIndex(column[6].value)
            self.ui.ilp.setText(str(column[7].value))
            self.ui.flp.setText(str(column[8].value))
            self.ui.np.setText(str(column[9].value))