Example #1
0
 def __init__(self, parent=None, lights=[]):
     super(CapturePreviewWidget, self).__init__(parent)
     self.ui = Ui_capturePreview()
     self.ui.setupUi(self)
     # make and add the graphics scene to siplay the preview image
     self.previewGraphicsScene = QtGui.QGraphicsScene()
     self.ui.previewGraphicsView.setScene(self.previewGraphicsScene)
     self.ui.previewGraphicsView.scale(0.35, 0.35)
     if len(lights) > 0:
         self.ui.activateSingleLightComboBox.addItems(lights)
     else:
         self.ui.activateSingleLightComboBox.setEnabled(False)