def __init__(self, parent=None):
     modelGenerateGUIMain.__init__(self, __desc__, parent)
     #
     self.numberOfPins = QtGui.QSpinBox()
     self.numberOfPins.setValue(2)
     self.numberOfPins.setMinimum(2)
     self.numberOfPins.setSingleStep(1)
     #
     self.addMainImageDim("connectorDG107V_7_62-01P_14_00AHDim.png")
     self.mainFormLay.addRow(QtGui.QLabel("Number of rows"), self.numberOfPins)
     self.mainFormLay.addRow(QtGui.QLabel("Raster1 (r1)"), autVariable(7.62))
     self.mainFormLay.addRow(QtGui.QLabel("Raster2 (r2)"), autVariable(9.5))
コード例 #2
0
 def __init__(self, parent=None):
     modelGenerateGUIMain.__init__(self, __desc__, parent)
     #
     self.numberOfRows = QtGui.QSpinBox()
     self.numberOfRows.setValue(1)
     self.numberOfRows.setMinimum(1)
     self.numberOfRows.setSingleStep(1)
     #
     self.numberOfCols = QtGui.QSpinBox()
     self.numberOfCols.setValue(1)
     self.numberOfCols.setMinimum(1)
     self.numberOfCols.setSingleStep(1)
     #
     self.pinsHeight1 = QtGui.QDoubleSpinBox()
     self.pinsHeight1.setValue(6.75)
     self.pinsHeight1.setMinimum(0.5)
     self.pinsHeight1.setSingleStep(0.5)
     self.pinsHeight1.setSuffix("mm")
     #
     self.pinsHeight3 = QtGui.QDoubleSpinBox()
     self.pinsHeight3.setValue(2.9)
     self.pinsHeight3.setMinimum(0.5)
     self.pinsHeight3.setSingleStep(0.5)
     self.pinsHeight3.setSuffix("mm")
     #
     self.numberOfSupports = QtGui.QSpinBox()
     self.numberOfSupports.setValue(1)
     self.numberOfSupports.setMinimum(1)
     self.numberOfSupports.setMaximum(3)
     self.numberOfSupports.setSingleStep(1)
     #
     self.supportsSpacing = QtGui.QDoubleSpinBox()
     self.supportsSpacing.setValue(10)
     self.supportsSpacing.setMinimum(3)
     self.supportsSpacing.setSingleStep(0.5)
     self.supportsSpacing.setSuffix("mm")
     #
     self.addMainImageDim("connectorGoldpinsDim.png")
     self.mainFormLay.addRow(QtGui.QLabel("Number of rows"),
                             self.numberOfRows)
     self.mainFormLay.addRow(QtGui.QLabel("Number of cols"),
                             self.numberOfCols)
     self.mainFormLay.addRow(QtGui.QLabel("Raster (r)"), autVariable(2.54))
     self.mainFormLay.addRow(QtGui.QLabel("Pins height (h1)"),
                             self.pinsHeight1)
     self.mainFormLay.addRow(QtGui.QLabel("Pins height (h2)"),
                             autVariable(2.54))
     self.mainFormLay.addRow(QtGui.QLabel("Pins height (h3)"),
                             self.pinsHeight3)
     self.mainFormLay.addRow(QtGui.QLabel("Number of supports"),
                             self.numberOfSupports)
     self.mainFormLay.addRow(QtGui.QLabel("Distance between supports (l)"),
                             self.supportsSpacing)
コード例 #3
0
 def __init__(self, parent=None):
     modelGenerateGUIMain.__init__(self, __desc__, parent)
     #
     self.diameter = QtGui.QDoubleSpinBox()
     self.diameter.setValue(1.1)
     self.diameter.setMinimum(0.5)
     self.diameter.setSingleStep(0.5)
     self.diameter.setSuffix("mm")
     #
     self.totalLen = autVariable()
     #
     self.len_1 = QtGui.QDoubleSpinBox()
     self.len_1.setValue(0.4)
     self.len_1.setSuffix("mm")
     self.len_1.setMinimum(0.2)
     self.len_1.setSingleStep(0.2)
     self.connect(self.len_1, QtCore.SIGNAL("valueChanged (double)"),
                  self.updateTotalLen)
     #
     self.len_2 = QtGui.QDoubleSpinBox()
     self.len_2.setMinimum(0.5)
     self.len_2.setSuffix("mm")
     self.len_2.setSingleStep(0.5)
     self.connect(self.len_2, QtCore.SIGNAL("valueChanged (double)"),
                  self.updateTotalLen)
     self.len_2.setValue(1.2)
     #
     self.addMainImageDim("diodeSmdSodMelfDim.png")
     self.mainFormLay.addRow(QtGui.QLabel("d"), self.diameter)
     self.mainFormLay.addRow(QtGui.QLabel("k"), self.len_1)
     self.mainFormLay.addRow(QtGui.QLabel("l"), self.len_2)
     self.mainFormLay.addRow(QtGui.QLabel("l1 = l + k * 2      "),
                             self.totalLen)
コード例 #4
0
 def __init__(self, parent=None):
     modelGenerateGUIMain.__init__(self, __desc__, parent)
     #
     self.numberOfPins = QtGui.QSpinBox()
     self.numberOfPins.setValue(2)
     self.numberOfPins.setMinimum(2)
     self.numberOfPins.setSingleStep(1)
     #
     self.addMainImageDim("connectorAmpQuickDim.png")
     self.mainFormLay.addRow(QtGui.QLabel("Number of pins (l)"), self.numberOfPins)
     self.mainFormLay.addRow(QtGui.QLabel("Raster(a)"), autVariable(2.54))