def create_layout(self, cxn): from PMT_CONTROL import pmtWidget from common.clients.LINETRIGGER_CONTROL import linetriggerWidget as lineTrig self.tabWidget = QtGui.QTabWidget() lightControlTab = self.makeLightWidget(reactor) voltageControlTab = self.makeVoltageWidget(reactor) #control729Widget = self.makecontrol729Widget(reactor, cxn) tableopticsTab = self.makeTableOpticsWidget(reactor) self.tabWidget.addTab(voltageControlTab,'&Trap Voltages') self.tabWidget.addTab(lightControlTab,'&Laser Room') #self.tabWidget.addTab(control729Widget, '&729 Control') self.tabWidget.addTab(tableopticsTab, '&Table Optics') # scriptControl = self.makeScriptControl(reactor) self.createGrapherTab() gridLayout = QtGui.QGridLayout() # gridLayout.addWidget(scriptControl, 0, 0, 1, 1) gridLayout.addWidget(self.tabWidget, 0, 1, 1, 3) rightPanel = QtGui.QGridLayout() rightPanel.addWidget(pmtWidget(reactor), 0, 0) rightPanel.addWidget(lineTrig(reactor), 1, 0) gridLayout.addLayout(rightPanel, 0, 4) centralWidget = QtGui.QWidget() centralWidget.setLayout(gridLayout) self.setCentralWidget(centralWidget) self.setWindowTitle('CCTGUI')
def create_layout(self, cxn): from PMT_CONTROL import pmtWidget from common.clients.LINETRIGGER_CONTROL import linetriggerWidget as lineTrig from common.clients.script_scanner_gui.script_scanner_gui import script_scanner_gui from common.clients.drift_tracker.drift_tracker import drift_tracker dt = drift_tracker(reactor, cxn) self.tabWidget = QtGui.QTabWidget() lightControlTab = self.makeLightWidget(reactor, cxn) voltageControlTab = self.makeVoltageWidget(reactor) piezoControlTab = self.makePiezoWidget(reactor) script_scanner = script_scanner_gui(reactor, cxn) self.tabWidget.addTab(voltageControlTab,'&Trap Voltages') self.tabWidget.addTab(lightControlTab,'&Optics') self.tabWidget.addTab(script_scanner, '&Script Scanner') self.tabWidget.addTab(dt, '&Drift Tracker') self.tabWidget.addTab(piezoControlTab, '&Piezo') self.createGrapherTab() gridLayout = QtGui.QGridLayout() #gridLayout.addWidget(scriptControl, 0, 0, 1, 1) gridLayout.addWidget(self.tabWidget, 0, 1, 1, 3) rightPanel = QtGui.QGridLayout() rightPanel.addWidget(pmtWidget(reactor), 0, 0) rightPanel.addWidget(lineTrig(reactor), 1, 0) gridLayout.addLayout(rightPanel, 0, 4) centralWidget = QtGui.QWidget() centralWidget.setLayout(gridLayout) self.setCentralWidget(centralWidget) self.setWindowTitle('CCTGUI')
def create_layout(self, cxn): from PMT_CONTROL import pmtWidget from common.clients.LINETRIGGER_CONTROL import linetriggerWidget as lineTrig from common.clients.script_scanner_gui.script_scanner_gui import script_scanner_gui from common.clients.drift_tracker.drift_tracker import drift_tracker dt = drift_tracker(reactor, cxn) self.tabWidget = QtGui.QTabWidget() lightControlTab = self.makeLightWidget(reactor, cxn) voltageControlTab = self.makeVoltageWidget(reactor) piezoControlTab = self.makePiezoWidget(reactor) script_scanner = script_scanner_gui(reactor, cxn) self.tabWidget.addTab(voltageControlTab, '&Trap Voltages') self.tabWidget.addTab(lightControlTab, '&Optics') self.tabWidget.addTab(script_scanner, '&Script Scanner') self.tabWidget.addTab(dt, '&Drift Tracker') self.tabWidget.addTab(piezoControlTab, '&Piezo') self.createGrapherTab() gridLayout = QtGui.QGridLayout() #gridLayout.addWidget(scriptControl, 0, 0, 1, 1) gridLayout.addWidget(self.tabWidget, 0, 1, 1, 3) rightPanel = QtGui.QGridLayout() rightPanel.addWidget(pmtWidget(reactor), 0, 0) rightPanel.addWidget(lineTrig(reactor), 1, 0) gridLayout.addLayout(rightPanel, 0, 4) centralWidget = QtGui.QWidget() centralWidget.setLayout(gridLayout) self.setCentralWidget(centralWidget) self.setWindowTitle('CCTGUI')
def create_layout(self, cxn): from PMT_CONTROL import pmtWidget from common.clients.LINETRIGGER_CONTROL import linetriggerWidget as lineTrig from common.clients.readout_histogram import readout_histogram self.tabWidget = QtGui.QTabWidget() lightControlTab = self.makeLightWidget(reactor) voltageControlTab = self.makeVoltageWidget(reactor) #control729Widget = self.makecontrol729Widget(reactor, cxn) tableopticsTab = self.makeTableOpticsWidget(reactor) # sweepTab = self.makeSweepWidget(reactor) #histWidget = self.make_histogram_widget(reactor, cxn) #self.tabWidget.addTab(histWidget,'&Histogram') self.tabWidget.addTab(voltageControlTab, '&Trap Voltages') self.tabWidget.addTab(lightControlTab, '&Laser Room') #self.tabWidget.addTab(control729Widget, '&729 Control') self.tabWidget.addTab(tableopticsTab, '&Table Optics') # self.tabWidget.addTab(sweepTab, '&Sweep (Marconi)') from common.clients.script_scanner_gui.script_scanner_gui import script_scanner_gui script_scanner = script_scanner_gui(reactor, cxn) script_scanner.show() self.createGrapherTab() gridLayout = QtGui.QGridLayout() gridLayout.addWidget(self.tabWidget, 0, 1, 1, 3) rightPanel = QtGui.QGridLayout() rightPanel.addWidget(readout_histogram(reactor, cxn), 2, 0) rightPanel.addWidget(pmtWidget(reactor), 0, 0) rightPanel.addWidget(lineTrig(reactor), 1, 0) gridLayout.addLayout(rightPanel, 0, 4) centralWidget = QtGui.QWidget() centralWidget.setLayout(gridLayout) self.setCentralWidget(centralWidget) self.setWindowTitle('ResonatorGUI')
def create_layout(self, cxn): from PMT_CONTROL import pmtWidget from common.clients.LINETRIGGER_CONTROL import linetriggerWidget as lineTrig from common.clients.readout_histogram import readout_histogram self.tabWidget = QtGui.QTabWidget() lightControlTab = self.makeLightWidget(reactor) voltageControlTab = self.makeVoltageWidget(reactor) #control729Widget = self.makecontrol729Widget(reactor, cxn) tableopticsTab = self.makeTableOpticsWidget(reactor) # sweepTab = self.makeSweepWidget(reactor) #histWidget = self.make_histogram_widget(reactor, cxn) #self.tabWidget.addTab(histWidget,'&Histogram') self.tabWidget.addTab(voltageControlTab,'&Trap Voltages') self.tabWidget.addTab(lightControlTab,'&Laser Room') #self.tabWidget.addTab(control729Widget, '&729 Control') self.tabWidget.addTab(tableopticsTab, '&Table Optics') # self.tabWidget.addTab(sweepTab, '&Sweep (Marconi)') from common.clients.script_scanner_gui.script_scanner_gui import script_scanner_gui script_scanner = script_scanner_gui(reactor, cxn) script_scanner.show() self.createGrapherTab() gridLayout = QtGui.QGridLayout() gridLayout.addWidget(self.tabWidget, 0, 1, 1, 3) rightPanel = QtGui.QGridLayout() rightPanel.addWidget(readout_histogram(reactor, cxn), 2, 0) rightPanel.addWidget(pmtWidget(reactor), 0, 0) rightPanel.addWidget(lineTrig(reactor), 1, 0) gridLayout.addLayout(rightPanel, 0, 4) centralWidget = QtGui.QWidget() centralWidget.setLayout(gridLayout) self.setCentralWidget(centralWidget) self.setWindowTitle('ResonatorGUI')
def create_layout(self, cxn): from common.clients.PMT_CONTROL import pmtWidget from common.clients.LINETRIGGER_CONTROL import linetriggerWidget as lineTrig from common.clients.script_scanner_gui.script_scanner_gui import script_scanner_gui from common.clients.drift_tracker.drift_tracker import drift_tracker from common.clients.SWITCH_CONTROL import switchWidget # dt = drift_tracker(reactor, cxn) # layout = QtGui.QHBoxLayout() # centralWidget = QtGui.QWidget() self.tabWidget = QtGui.QTabWidget() lightControlTab = self.makeLightWidget(reactor, cxn) voltageControlTab = self.makeVoltageWidget(reactor) piezoControlTab = self.makePiezoWidget(reactor) script_scanner = script_scanner_gui(reactor, cxn) #grapherTab = yield self.makeGrapherWidget(reactor) histogram = self.make_histogram_widget(reactor, cxn) dt = drift_tracker(reactor, cxn) self.tabWidget.addTab(voltageControlTab,'&Trap Voltages') self.tabWidget.addTab(lightControlTab,'&Optics') self.tabWidget.addTab(script_scanner, '&Script Scanner') #self.createGrapherTab() self.tabWidget.addTab(dt, '&Drift Tracker') #self.tabWidget.addTab(piezoControlTab, '&Piezo') # self.tabWidget.addTab(grapherTab, '&Grapher') self.tabWidget.addTab(histogram, '&Readout Histogram') gridLayout = QtGui.QGridLayout() #gridLayout.addWidget(scriptControl, 0, 0, 1, 1) gridLayout.addWidget(self.tabWidget, 0, 1, 1, 3) rightPanel = QtGui.QGridLayout() rightPanel.addWidget(pmtWidget(reactor), 0, 0) rightPanel.addWidget(lineTrig(reactor), 1, 0) rightPanel.addWidget( switchWidget(reactor, cxn), 2, 0 ) ''' #Adding 729 Beams Position: #from common.clients.MOTOR_CONTROL import motorWidget rightPanel.addWidget( motorWidget(reactor), 2, 0) ''' gridLayout.addLayout(rightPanel, 0, 4) centralWidget = QtGui.QWidget() centralWidget.setLayout(gridLayout) self.setCentralWidget(centralWidget) self.setWindowTitle('CCTGUI')
def create_layout(self, cxn): from PMT_CONTROL import pmtWidget from common.clients.LINETRIGGER_CONTROL import linetriggerWidget as lineTrig from common.clients.script_scanner_gui.script_scanner_gui import script_scanner_gui from common.clients.drift_tracker.drift_tracker import drift_tracker from common.clients.SWITCH_CONTROL import switchWidget dt = drift_tracker(reactor, cxn) self.tabWidget = QtGui.QTabWidget() lightControlTab = self.makeLightWidget(reactor, cxn) voltageControlTab = self.makeVoltageWidget(reactor) piezoControlTab = self.makePiezoWidget(reactor) script_scanner = script_scanner_gui(reactor, cxn) self.tabWidget.addTab(voltageControlTab, "&Trap Voltages") self.tabWidget.addTab(lightControlTab, "&Optics") self.tabWidget.addTab(script_scanner, "&Script Scanner") self.tabWidget.addTab(dt, "&Drift Tracker") # self.tabWidget.addTab(piezoControlTab, '&Piezo') self.createGrapherTab() gridLayout = QtGui.QGridLayout() # gridLayout.addWidget(scriptControl, 0, 0, 1, 1) gridLayout.addWidget(self.tabWidget, 0, 1, 1, 3) rightPanel = QtGui.QGridLayout() rightPanel.addWidget(pmtWidget(reactor), 0, 0) rightPanel.addWidget(lineTrig(reactor), 1, 0) rightPanel.addWidget(switchWidget(reactor, cxn), 2, 0) """ #Adding 729 Beams Position: #from common.clients.MOTOR_CONTROL import motorWidget rightPanel.addWidget( motorWidget(reactor), 2, 0) """ gridLayout.addLayout(rightPanel, 0, 4) centralWidget = QtGui.QWidget() centralWidget.setLayout(gridLayout) self.setCentralWidget(centralWidget) self.setWindowTitle("CCTGUI")