def __init__(self, worker):
     QtGui.QMainWindow.__init__(self)
     self.ui = uic.loadUi('ui/main.ui', self)
     self.setWindowTitle("Timelapse Workbench")
     self.setFixedSize(self.size())
     self.settings = QtCore.QSettings('ui/main.ini',
                                      QtCore.QSettings.IniFormat)
     guirestore(self)
     self.worker = worker
     self.wireUiElements()
     self.setInitValues()
Esempio n. 2
0
 def __init__(self, worker):
     QtGui.QMainWindow.__init__(self)
     self.ui = uic.loadUi('ui/main.ui', self)
     self.setWindowTitle("Camera Workbench")
     self.setFixedSize(self.size())
     self.settings = QtCore.QSettings('ui/main.ini',
                                      QtCore.QSettings.IniFormat)
     guirestore(self)
     self.worker = worker
     self.timelapse = TimeLapse(self.worker)
     self.tr = tracker.SummaryTracker()
     self.tr.print_diff()
     self.populateDeviceList()
     self.wireUiElements()
     self.setInitValues()
Esempio n. 3
0
    def __init__(self, camera, device):
        QtGui.QWidget.__init__(self)
        ui_path = "ui/parameters"
        self.ui = uic.loadUi(ui_path + '.ui', self)
        self.setWindowTitle("Camera Settings")
        self.camera = camera
        self.deviceId = device
        self.settingsFuncs = [
            self.setBrightness, self.setContrast, self.setExposure,
            self.setRotation, self.setGain
        ]
        self.setFixedSize(self.size())

        self.settings = QtCore.QSettings(
            ui_path + '_' + str(self.deviceId) + '.ini',
            QtCore.QSettings.IniFormat)

        self.setDeviceName()
        self.wireUiElements()
        guirestore(self)
Esempio n. 4
0
 def reset(self, waitTime):
     guirestore(self)
     self.applySettings()
     self.wait(waitTime)