Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
    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)
Ejemplo n.º 3
0
    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)
Ejemplo n.º 4
0
    def __init__(self):

        pw = placementWidget()
        WBCommandGUI.__init__(self, [pw, "RaysPoint.ui"])
Ejemplo n.º 5
0
    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"])
Ejemplo n.º 7
0
 def __init__(self):
     pw = placementWidget()
     mw = materialWidget()
     WBCommandGUI.__init__(self, [pw, mw, "RightAnglePrism.ui"])
Ejemplo n.º 8
0
 def __init__(self):
     pw = placementWidget()
     mw = materialWidget()
     WBCommandGUI.__init__(self, [pw, mw, "RoundMirror.ui"])
Ejemplo n.º 9
0
 def __init__(self):
     pw = placementWidget()
     mw = materialWidget()
     WBCommandGUI.__init__(self, [pw, mw, "DiffractionGratting.ui"])
Ejemplo n.º 10
0
    def __init__(self):

        pw = placementWidget()
        mw = materialWidget()
        WBCommandGUI.__init__(self, [pw, mw, "BSCube.ui"])
Ejemplo n.º 11
0
 def __init__(self):
     pw = placementWidget()
     WBCommandGUI.__init__(self, [pw, "IdealThickLens.ui"])
Ejemplo n.º 12
0
 def __init__(self):
     pw = placementWidget()
     WBCommandGUI.__init__(self, [pw, "Sensor.ui"])