Exemple #1
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)
    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()
        mw = materialWidget()

        WBCommandGUI.__init__(self, [pw, mw, "SphericalLens.ui"])
Exemple #4
0
 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"])
Exemple #6
0
 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"])