def __init__(self, data, mainwindows): super(msLinearRigidRotorWidget, self).__init__(data, mainwindows) try: data.computeEigenValues() except: pass self.qInterface = msQuantumInterfaceWidget(data, mainwindows) self.vbox.addWidget(self.qInterface) self.groupbox.setTitle("Linear rigid rotor") self.setMinimumSize(550, 400)
def __init__(self,data,mainwindows): super(msQuantumMotion1dWidget, self).__init__(data,mainwindows) try: data.computeEigenValues() except: pass self.fixedKinEffCheckBox= QtGui.QCheckBox("freeze kinetic constant") self.fixedKinEffCheckBox.clicked.connect(self.fixKinConstant) self.vbox.addWidget(self.fixedKinEffCheckBox) self.qInterface = msQuantumInterfaceWidget(data,mainwindows) self.vbox.addWidget(self.qInterface) self.groupbox.setTitle("Quantum Motion 1D") hbox = QtGui.QHBoxLayout() plotES = QtGui.QPushButton("plot eigenstate") plotES.clicked.connect(self.plotEigenState) hbox.addWidget(plotES) hbox.addStretch(1) self.vbox.addLayout(hbox) self.setMinimumSize(550,400)