def __init__(self): pw = placementWidget() WBCommandGUI.__init__(self, [pw, "CatalogComponent.ui"]) for lib in dir(library): c = getattr(library, lib) if isinstance(c, library.Library): self.form.Catalog.addItem(lib, sorted(c.parts())) self.catalogChange(0) self.referenceChange(0) self.form.Catalog.currentIndexChanged.connect(self.catalogChange) self.form.Reference.currentIndexChanged.connect(self.referenceChange)
def __init__(self): pw = placementWidget() mw1 = materialWidget() mw2 = materialWidget() mw1.ui.label.setText("Material Lens 1") mw2.ui.label.setText("Material Lens 2") WBCommandGUI.__init__( self, [pw, {"mat1": mw1, "mat2": mw2}, "DoubletLens.ui"] ) self.form.ILD.valueChanged.connect(self.ILDChange) self.form.CS2_1.valueChanged.connect(self.CS2_1Change)
def __init__(self): pw = placementWidget() self.mw = materialWidget() self.mw.ui.label.setText("") WBCommandGUI.__init__(self, [pw, "LensData.ui"]) # In LensData.ui there is a layout called material that will be used as # holder for the material Widget. # TODO: Enable how to insert custom widgets in designer directly self.form.Material.addWidget(self.mw) self.form.addSurf.clicked.connect(self.addSurface) self.form.delSurf.clicked.connect(self.delSurface)
def __init__(self): pw = placementWidget() WBCommandGUI.__init__(self, [pw, "RaysPoint.ui"])
def __init__(self): pw = placementWidget() WBCommandGUI.__init__(self, [pw, "Aperture.ui"])
def __init__(self): pw = placementWidget() mw = materialWidget() WBCommandGUI.__init__(self, [pw, mw, "SphericalLens.ui"])
def __init__(self): pw = placementWidget() mw = materialWidget() WBCommandGUI.__init__(self, [pw, mw, "RightAnglePrism.ui"])
def __init__(self): pw = placementWidget() mw = materialWidget() WBCommandGUI.__init__(self, [pw, mw, "RoundMirror.ui"])
def __init__(self): pw = placementWidget() mw = materialWidget() WBCommandGUI.__init__(self, [pw, mw, "DiffractionGratting.ui"])
def __init__(self): pw = placementWidget() mw = materialWidget() WBCommandGUI.__init__(self, [pw, mw, "BSCube.ui"])
def __init__(self): pw = placementWidget() WBCommandGUI.__init__(self, [pw, "IdealThickLens.ui"])
def __init__(self): pw = placementWidget() WBCommandGUI.__init__(self, [pw, "Sensor.ui"])