コード例 #1
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)
コード例 #2
0
 def __init__(self, parent=None):
     modelGenerateGUIMain.__init__(self, __desc__, parent)
     #
     self.diameter1 = QtGui.QDoubleSpinBox()
     self.diameter1.setValue(5.6)
     self.diameter1.setMinimum(0.5)
     self.diameter1.setSingleStep(0.5)
     self.diameter1.setSuffix("mm")
     self.connect(self.diameter1, QtCore.SIGNAL("valueChanged (double)"), self.checkParam)
     #
     self.diameter2 = QtGui.QDoubleSpinBox()
     self.diameter2.setMinimum(0.5)
     self.diameter2.setSingleStep(0.5)
     self.diameter2.setSuffix("mm")
     self.connect(self.diameter2, QtCore.SIGNAL("valueChanged (double)"), self.checkParam)
     self.diameter2.setValue(3)
     #
     self.length = QtGui.QDoubleSpinBox()
     self.length.setValue(10)
     self.length.setMinimum(0.1)
     self.length.setSingleStep(0.5)
     self.length.setSuffix("mm")
     #
     self.addMainImageDim("hexStandoffFemaleFemaleDim.png")
     self.mainFormLay.addRow(QtGui.QLabel("d1"), self.diameter1)
     self.mainFormLay.addRow(QtGui.QLabel("d2"), self.diameter2)
     self.mainFormLay.addRow(QtGui.QLabel("l"), self.length)
コード例 #3
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))
 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))
コード例 #5
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)
コード例 #6
0
 def __init__(self, parent=None):
     modelGenerateGUIMain.__init__(self, __desc__, parent)
     #
     self.length = QtGui.QDoubleSpinBox()
     self.length.setValue(100)
     self.length.setMinimum(10)
     self.length.setMaximum(2000)
     self.length.setSingleStep(1)
     self.length.setSuffix("mm")
     #
     self.rows = QtGui.QDoubleSpinBox()
     self.rows.setValue(1)
     self.rows.setMinimum(1)
     self.rows.setSingleStep(1)
     #
     self.addMainImageDim("profileVSlotDim.png")
     self.mainFormLay.addRow(QtGui.QLabel("Length (l)"), self.length)
     self.mainFormLay.addRow(QtGui.QLabel("Rows (r)"), self.rows)
コード例 #7
0
 def __init__(self, parent=None):
     modelGenerateGUIMain.__init__(self, __desc__, parent)
     #
     self.diameter = QtGui.QDoubleSpinBox()
     self.diameter.setValue(1)
     self.diameter.setMinimum(0.5)
     self.diameter.setSingleStep(0.5)
     self.diameter.setSuffix("mm")
     #
     self.modelRaster = QtGui.QDoubleSpinBox()
     self.modelRaster.setValue(10)
     self.modelRaster.setMinimum(0.5)
     self.modelRaster.setSingleStep(0.5)
     self.modelRaster.setSuffix("mm")
     #
     self.addMainImageDim("jumperDim.png")
     self.mainFormLay.addRow(QtGui.QLabel("Diameter (a)"), self.diameter)
     self.mainFormLay.addRow(QtGui.QLabel("Raster (r)"), self.modelRaster)
コード例 #8
0
 def __init__(self, parent=None):
     modelGenerateGUIMain.__init__(self, __desc__, parent)
     #
     self.diameter = QtGui.QDoubleSpinBox()
     self.diameter.setValue(0.8)
     self.diameter.setMinimum(0.2)
     self.diameter.setSingleStep(0.2)
     self.diameter.setSuffix("mm")
     #
     self.len_1 = QtGui.QDoubleSpinBox()
     self.len_1.setValue(22)
     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.checkParam)
     #
     self.len_2 = QtGui.QDoubleSpinBox()
     self.len_2.setMinimum(0.5)
     self.len_2.setSuffix("mm")
     self.len_2.setSingleStep(0.5)
     self.len_2.setValue(9)
     #
     self.len_3 = QtGui.QDoubleSpinBox()
     self.len_3.setMinimum(0.5)
     self.len_3.setSuffix("mm")
     self.len_3.setSingleStep(0.5)
     self.len_3.setValue(9)
     #
     self.len_4 = QtGui.QDoubleSpinBox()
     self.len_4.setMinimum(0.5)
     self.len_4.setSuffix("mm")
     self.len_4.setSingleStep(0.5)
     self.connect(self.len_4, QtCore.SIGNAL("valueChanged (double)"),
                  self.checkParam)
     self.len_4.setValue(25)
     #
     self.addMainImageDim("resistor1Dim.png")
     self.mainFormLay.addRow(QtGui.QLabel("w"), self.len_1)
     self.mainFormLay.addRow(QtGui.QLabel("h"), self.len_2)
     self.mainFormLay.addRow(QtGui.QLabel("d"), self.len_3)
     self.mainFormLay.addRow(QtGui.QLabel("d1"), self.diameter)
     self.mainFormLay.addRow(QtGui.QLabel("Raster (r)"), self.len_4)
コード例 #9
0
 def __init__(self, parent=None):
     modelGenerateGUIMain.__init__(self, __desc__, parent)
     #
     self.diameter = QtGui.QDoubleSpinBox()
     self.diameter.setValue(2.7)
     self.diameter.setMinimum(0.5)
     self.diameter.setSingleStep(0.5)
     self.diameter.setSuffix("mm")
     self.connect(self.diameter, QtCore.SIGNAL("valueChanged (double)"),
                  self.checkParam)
     #
     self.diameter2 = QtGui.QDoubleSpinBox()
     self.diameter2.setValue(0.85)
     self.diameter2.setMinimum(0.5)
     self.diameter2.setSingleStep(0.5)
     self.diameter2.setSuffix("mm")
     self.connect(self.diameter2, QtCore.SIGNAL("valueChanged (double)"),
                  self.checkParam)
     #
     self.len_1 = QtGui.QDoubleSpinBox()
     self.len_1.setValue(5.2)
     self.len_1.setSuffix("mm")
     self.len_1.setMinimum(0.2)
     self.len_1.setSingleStep(0.2)
     #
     self.len_2 = QtGui.QDoubleSpinBox()
     self.len_2.setMinimum(0.5)
     self.len_2.setSuffix("mm")
     self.len_2.setSingleStep(0.5)
     self.len_2.setValue(5)
     #
     self.len_3 = QtGui.QDoubleSpinBox()
     self.len_3.setMinimum(0.5)
     self.len_3.setSuffix("mm")
     self.len_3.setSingleStep(0.5)
     self.len_3.setValue(2)
     #
     self.addMainImageDim("diodeThmDO_VDim.png")
     self.mainFormLay.addRow(QtGui.QLabel("d1"), self.diameter)
     self.mainFormLay.addRow(QtGui.QLabel("d2"), self.diameter2)
     self.mainFormLay.addRow(QtGui.QLabel("l1"), self.len_1)
     self.mainFormLay.addRow(QtGui.QLabel("l2"), self.len_3)
     self.mainFormLay.addRow(QtGui.QLabel("Raster (r)"), self.len_2)