Ejemplo n.º 1
0
 def makeControlWidget(self, reactor, cxn):
     widget = QtGui.QWidget()
     #from electrode_client.electrode import electrode_widget
     from lattice.clients.DAC_CONTROL import DAC_Control
     from common.clients.LASERDAC_CONTROL import DAC_Control as laserdac_control_widget
     from common.clients.multiplexer.MULTIPLEXER_CONTROL import multiplexerWidget
     from common.clients.PMT_CONTROL import pmtWidget
     from common.clients.SWITCH_CONTROL import switchWidget
     from common.clients.DDS_CONTROL import DDS_CONTROL
     from common.clients.LINETRIGGER_CONTROL import linetriggerWidget
     from quick_actions.quick_actions import actions_widget
     from indicator.indicator import indicator_widget
     from agilent_E3633A.agilent_E3633A import magnet_Control, oven_Control
     gridLayout = QtGui.QGridLayout()
     gridLayout.addWidget(DAC_Control(reactor), 0, 0, 1, 2)
     #gridLayout.addWidget(electrode_widget(reactor, cxn),    0,0,1,2)
     gridLayout.addWidget(actions_widget(reactor, cxn),      1,0,1,2)
     #gridLayout.addWidget(indicator_widget(reactor, cxn),    2,0,1,2)
     #gridLayout.addWidget(magnet_Control(reactor, cxn),      3,0,1,1)
     #gridLayout.addWidget(oven_Control(reactor, cxn),        3,1,1,1)
     gridLayout.addWidget(magnet_Control(reactor, cxn),      2,0,1,1)
     gridLayout.addWidget(oven_Control(reactor, cxn),        2,1,1,1)
     gridLayout.addWidget(laserdac_control_widget(reactor),             0,2,3,2)
     gridLayout.addWidget(multiplexerWidget(reactor),        0,4,3,1)
     gridLayout.addWidget(switchWidget(reactor, cxn),        3,0,1,2)
     gridLayout.addWidget(pmtWidget(reactor),                3,2,1,1)
     gridLayout.addWidget(linetriggerWidget(reactor, cxn),   3,3,1,1)
     gridLayout.addWidget(DDS_CONTROL(reactor, cxn),         3,4,1,1)
     widget.setLayout(gridLayout)
     return widget
Ejemplo n.º 2
0
 def makeOpticsWidget(self, reactor, cxn):
     widget = QtGui.QWidget()
     #from common.clients.DAC_CONTROL import DAC_Control as voltageWidget
     from common.clients.LASERDAC_CONTROL import DAC_Control as laserdac_control_widget
     from common.clients.multiplexer.MULTIPLEXER_CONTROL import multiplexerWidget
     from common.clients.PMT_CONTROL import pmtWidget
     from common.clients.SWITCH_CONTROL import switchWidget
     from common.clients.DDS_CONTROL import DDS_CONTROL
     from common.clients.LINETRIGGER_CONTROL import linetriggerWidget
     from quick_actions.quick_actions import actions_widget
     from common.clients.InjectionLock_GUI_new import InjectionLock_Control as injectionwidget
     gridLayout = QtGui.QGridLayout()
     #gridLayout.addWidget(voltageWidget(reactor),            0,0,1,1)
     gridLayout.addWidget(actions_widget(reactor, cxn), 2, 3, 1, 1)
     gridLayout.addWidget(laserdac_control_widget(reactor), 0, 0, 3,
                          2)  #0,1,3,2)
     gridLayout.addWidget(multiplexerWidget(reactor), 0, 1, 3, 2)  #0,3,3,1)
     gridLayout.addWidget(switchWidget(reactor, cxn), 3, 0, 1, 1)
     gridLayout.addWidget(pmtWidget(reactor), 0, 3, 2, 1)  #3,1,1,1)
     gridLayout.addWidget(linetriggerWidget(reactor, cxn), 3, 3, 1,
                          1)  #3,2,1,1)
     gridLayout.addWidget(DDS_CONTROL(reactor, cxn), 3, 1, 1, 1)  #3,3,1,1)
     gridLayout.addWidget(injectionwidget(reactor), 1, 3, 1, 1)
     widget.setLayout(gridLayout)
     return widget
Ejemplo n.º 3
0
    def makeControlWidget(self, reactor, cxn):
        widget = QtGui.QWidget()

        from common.clients.PMT_CONTROL import pmtWidget
        from common.clients.SWITCH_CONTROL import switchWidget
        from common.clients.DDS_CONTROL import DDS_CONTROL
        from common.clients.LINETRIGGER_CONTROL import linetriggerWidget
        gridLayout = QtGui.QGridLayout()

        gridLayout.addWidget(switchWidget(reactor, cxn),        0,2)
        gridLayout.addWidget(pmtWidget(reactor),                0,0)
        gridLayout.addWidget(linetriggerWidget(reactor, cxn),   0,4)
        gridLayout.addWidget(DDS_CONTROL(reactor, cxn),         0,5)
        widget.setLayout(gridLayout)
        return widget
Ejemplo n.º 4
0
 def makeOpticsWidget(self, reactor, cxn):
     widget = QtGui.QWidget()
     #from common.clients.DAC_CONTROL import DAC_Control as voltageWidget
     from common.clients.CAVITY_CONTROL import cavityWidget
     from common.clients.multiplexer.MULTIPLEXER_CONTROL import multiplexerWidget
     from common.clients.PMT_CONTROL import pmtWidget
     from common.clients.SWITCH_CONTROL import switchWidget
     from common.clients.DDS_CONTROL import DDS_CONTROL
     from common.clients.LINETRIGGER_CONTROL import linetriggerWidget
     gridLayout = QtGui.QGridLayout()
     #gridLayout.addWidget(voltageWidget(reactor),            0,0,1,1)
     gridLayout.addWidget(cavityWidget(reactor),             0,0,1,1)#0,1,3,2)
     gridLayout.addWidget(multiplexerWidget(reactor),        0,1,3,2)#0,3,3,1)
     gridLayout.addWidget(switchWidget(reactor, cxn),        3,0,1,1)
     gridLayout.addWidget(pmtWidget(reactor),                0,3,3,1)#3,1,1,1)
     gridLayout.addWidget(linetriggerWidget(reactor, cxn),   3,3,1,1)#3,2,1,1)
     gridLayout.addWidget(DDS_CONTROL(reactor, cxn),         3,1,1,1)#3,3,1,1)
     widget.setLayout(gridLayout)
     return widget
Ejemplo n.º 5
0
    def makeControlWidget(self, reactor, cxn):
        widget = QtGui.QTabWidget()
        #from electrode_client.electrode import electrode_widget
        #from lattice.clients.DAC_CONTROL import DAC_Control
        from common.clients.LASERDAC_CONTROL import DAC_Control as laserdac_control_widget
        from common.clients.multiplexer.MULTIPLEXER_CONTROL import multiplexerWidget
        from common.clients.PMT_CONTROL import pmtWidget
        from common.clients.SWITCH_CONTROL import switchWidget
        from common.clients.DDS_CONTROL import DDS_CONTROL
        from common.clients.LINETRIGGER_CONTROL import linetriggerWidget
        from quick_actions.quick_actions import actions_widget
        from indicator.indicator import indicator_widget
        from agilent_E3633A.agilent_E3633A import magnet_Control, oven_Control
        from common.clients.InjectionLock_GUI_new import InjectionLock_Control

        gridLayout = QtGui.QGridLayout()
        # gridLayout.addWidget(DAC_Control(reactor), 0, 0, 1, 2)
        #gridLayout.addWidget(electrode_widget(reactor, cxn),    0,0,1,2)
        pixmap = QtGui.QPixmap("/home/lattice/quantum_leap.png")
        qlabel = QtGui.QLabel(self)
        qlabel.setPixmap(pixmap)
        from PyQt4.QtCore import Qt as q
        qlabel.setSizePolicy(QtGui.QSizePolicy.Expanding,
                             QtGui.QSizePolicy.Expanding)
        qlabel.setAlignment(q.AlignCenter)
        gridLayout.addWidget(qlabel, 0, 0, 1, 2)
        gridLayout.addWidget(actions_widget(reactor, cxn), 1, 0, 1, 2)
        #gridLayout.addWidget(indicator_widget(reactor, cxn),    2,0,1,2)
        #gridLayout.addWidget(magnet_Control(reactor, cxn),      3,0,1,1)
        #gridLayout.addWidget(oven_Control(reactor, cxn),        3,1,1,1)
        #gridLayout.addWidget(magnet_Control(reactor, cxn),      2,0,1,1)
        #gridLayout.addWidget(oven_Control(reactor, cxn),        2,1,1,1)
        gridLayout.addWidget(InjectionLock_Control(reactor), 2, 1, 1, 1)
        gridLayout.addWidget(laserdac_control_widget(reactor), 0, 2, 3, 2)
        gridLayout.addWidget(multiplexerWidget(reactor), 0, 4, 3, 1)
        gridLayout.addWidget(switchWidget(reactor, cxn), 3, 0, 1, 2)
        gridLayout.addWidget(pmtWidget(reactor), 3, 2, 1, 1)
        gridLayout.addWidget(linetriggerWidget(reactor, cxn), 3, 3, 1, 1)
        gridLayout.addWidget(DDS_CONTROL(reactor, cxn), 3, 4, 1, 1)
        widget.setLayout(gridLayout)
        return widget
Ejemplo n.º 6
0
 def makeControlWidget(self, reactor, cxn):
     widget = QtGui.QWidget()
     from ENDCAP_CONTROL import ENDCAP_CONTROL as endcapWidget 
     from COMPENSATION_CONTROL import COMPENSATION_CONTROL as compensationWidget
     from common.clients.CAVITY_CONTROL import cavityWidget
     from common.clients.multiplexer.MULTIPLEXER_CONTROL import multiplexerWidget
     from common.clients.PMT_CONTROL import pmtWidget
     from common.clients.SWITCH_CONTROL import switchWidget
     from common.clients.DDS_CONTROL import DDS_CONTROL
     from common.clients.LINETRIGGER_CONTROL import linetriggerWidget
     gridLayout = QtGui.QGridLayout()
     gridLayout.addWidget(endcapWidget(reactor, cxn),        0,0,1,1)
     gridLayout.addWidget(compensationWidget(reactor, cxn),  1,0,1,1)
     gridLayout.addWidget(cavityWidget(reactor),             0,1,3,2)
     gridLayout.addWidget(multiplexerWidget(reactor),        0,3,3,1)
     gridLayout.addWidget(switchWidget(reactor, cxn),        3,0,1,1)
     gridLayout.addWidget(pmtWidget(reactor),                3,1,1,1)
     gridLayout.addWidget(linetriggerWidget(reactor, cxn),   3,2,1,1)
     gridLayout.addWidget(DDS_CONTROL(reactor, cxn),         3,3,1,1)
     widget.setLayout(gridLayout)
     return widget
Ejemplo n.º 7
0
 def makeControlWidget(self, reactor, cxn):
     widget = QtGui.QWidget()
     from ENDCAP_CONTROL import ENDCAP_CONTROL as endcapWidget
     from COMPENSATION_CONTROL import COMPENSATION_CONTROL as compensationWidget
     from common.clients.CAVITY_CONTROL import cavityWidget
     from common.clients.multiplexer.MULTIPLEXER_CONTROL import multiplexerWidget
     from common.clients.PMT_CONTROL import pmtWidget
     from common.clients.SWITCH_CONTROL import switchWidget
     from common.clients.DDS_CONTROL import DDS_CONTROL
     from common.clients.LINETRIGGER_CONTROL import linetriggerWidget
     gridLayout = QtGui.QGridLayout()
     gridLayout.addWidget(endcapWidget(reactor, cxn), 0, 0, 1, 1)
     gridLayout.addWidget(compensationWidget(reactor, cxn), 1, 0, 1, 1)
     gridLayout.addWidget(cavityWidget(reactor), 0, 1, 3, 2)
     gridLayout.addWidget(multiplexerWidget(reactor), 0, 3, 3, 1)
     gridLayout.addWidget(switchWidget(reactor, cxn), 3, 0, 1, 1)
     gridLayout.addWidget(pmtWidget(reactor), 3, 1, 1, 1)
     gridLayout.addWidget(linetriggerWidget(reactor, cxn), 3, 2, 1, 1)
     gridLayout.addWidget(DDS_CONTROL(reactor, cxn), 3, 3, 1, 1)
     widget.setLayout(gridLayout)
     return widget
Ejemplo n.º 8
0
 def makeControlWidget(self, reactor, cxn):
     widget = QtGui.QTabWidget()
     #from electrode_client.electrode import electrode_widget
     #from lattice.clients.DAC_CONTROL import DAC_Control
     from common.clients.LASERDAC_CONTROL import DAC_Control as laserdac_control_widget
     from common.clients.multiplexer.MULTIPLEXER_CONTROL import multiplexerWidget
     from common.clients.PMT_CONTROL import pmtWidget
     from common.clients.SWITCH_CONTROL import switchWidget
     from common.clients.DDS_CONTROL import DDS_CONTROL
     from common.clients.LINETRIGGER_CONTROL import linetriggerWidget
     from quick_actions.quick_actions import actions_widget
     from indicator.indicator import indicator_widget
     from agilent_E3633A.agilent_E3633A import magnet_Control, oven_Control
     from common.clients.InjectionLock_GUI_new import InjectionLock_Control
     
     gridLayout = QtGui.QGridLayout()
     # gridLayout.addWidget(DAC_Control(reactor), 0, 0, 1, 2)
     #gridLayout.addWidget(electrode_widget(reactor, cxn),    0,0,1,2)
     pixmap = QtGui.QPixmap("/home/lattice/quantum_leap.png")
     qlabel = QtGui.QLabel(self)
     qlabel.setPixmap(pixmap)
     from PyQt4.QtCore import Qt as q
     qlabel.setSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
     qlabel.setAlignment(q.AlignCenter)
     gridLayout.addWidget(qlabel, 0,0,1,2)
     gridLayout.addWidget(actions_widget(reactor, cxn),      1,0,1,2)
     #gridLayout.addWidget(indicator_widget(reactor, cxn),    2,0,1,2)
     #gridLayout.addWidget(magnet_Control(reactor, cxn),      3,0,1,1)
     #gridLayout.addWidget(oven_Control(reactor, cxn),        3,1,1,1)
     #gridLayout.addWidget(magnet_Control(reactor, cxn),      2,0,1,1)
     #gridLayout.addWidget(oven_Control(reactor, cxn),        2,1,1,1)
     gridLayout.addWidget(InjectionLock_Control(reactor),        2,1,1,1)
     gridLayout.addWidget(laserdac_control_widget(reactor),             0,2,3,2)
     gridLayout.addWidget(multiplexerWidget(reactor),        0,4,3,1)
     gridLayout.addWidget(switchWidget(reactor, cxn),        3,0,1,2)
     gridLayout.addWidget(pmtWidget(reactor),                3,2,1,1)
     gridLayout.addWidget(linetriggerWidget(reactor, cxn),   3,3,1,1)
     gridLayout.addWidget(DDS_CONTROL(reactor, cxn),         3,4,1,1)
     widget.setLayout(gridLayout)
     return widget
Ejemplo n.º 9
0
 def makeOpticsWidget(self, reactor, cxn):
     widget = QtGui.QWidget()
     #from common.clients.DAC_CONTROL import DAC_Control as voltageWidget
     from common.clients.LASERDAC_CONTROL import DAC_Control as laserdac_control_widget  
     from common.clients.multiplexer.MULTIPLEXER_CONTROL import multiplexerWidget
     from common.clients.PMT_CONTROL import pmtWidget
     from common.clients.SWITCH_CONTROL import switchWidget
     from common.clients.DDS_CONTROL import DDS_CONTROL
     from common.clients.LINETRIGGER_CONTROL import linetriggerWidget
     from quick_actions.quick_actions import actions_widget
     from common.clients.InjectionLock_GUI_new import InjectionLock_Control as injectionwidget
     gridLayout = QtGui.QGridLayout()
     #gridLayout.addWidget(voltageWidget(reactor),            0,0,1,1)
     gridLayout.addWidget(actions_widget(reactor, cxn),      2,3,1,1)
     gridLayout.addWidget(laserdac_control_widget(reactor),      0,0,3,2)#0,1,3,2) 
     gridLayout.addWidget(multiplexerWidget(reactor),        0,1,3,2)#0,3,3,1)
     gridLayout.addWidget(switchWidget(reactor, cxn),        3,0,1,1)
     gridLayout.addWidget(pmtWidget(reactor),                0,3,2,1)#3,1,1,1)
     gridLayout.addWidget(linetriggerWidget(reactor, cxn),   3,3,1,1)#3,2,1,1)
     gridLayout.addWidget(DDS_CONTROL(reactor, cxn),         3,1,1,1)#3,3,1,1)
     gridLayout.addWidget(injectionwidget(reactor),      1,3,1,1)
     widget.setLayout(gridLayout)
     return widget
Ejemplo n.º 10
0
    def makeControlWidget(self, reactor, cxn):
        widget = QtGui.QWidget()

        from common.clients.PMT_CONTROL    import pmtWidget
        from common.clients.SWITCH_CONTROL import switchWidget
        from common.clients.DDS_CONTROL    import DDS_CONTROL
        #from common.clients.DAC_CONTROL    import DAC_Control
        from common.clients.NEW_DAC_CONTROL import DAC_Control
        from quick_actions.quick_actions import actions_widget
        from rotation.rotation_control import rotation_widget
        from common.clients.LINETRIGGER_CONTROL import linetriggerWidget
        gridLayout = QtGui.QGridLayout()

        gridLayout.addWidget(switchWidget(reactor, cxn),        1,3,1,1)
        gridLayout.addWidget(pmtWidget(reactor),                0,3,1,1)
        gridLayout.addWidget(DDS_CONTROL(reactor, cxn),         0,4,4,2)
        gridLayout.addWidget(actions_widget(reactor, cxn),      3,3,2,1)
        gridLayout.addWidget(rotation_widget(reactor, cxn),     4,3,2,1)
        gridLayout.addWidget(DAC_Control(reactor),              0,0,7,3)
        gridLayout.addWidget(linetriggerWidget(reactor),        2,3,1,1)

        widget.setLayout(gridLayout)
        return widget
Ejemplo n.º 11
0
    def makeControlWidget(self, reactor, cxn):
        widget = QtWidgets.QWidget()

        from common.clients.PMT_CONTROL import pmtWidget
        from common.clients.SWITCH_CONTROL import switchWidget
        from common.clients.DDS_CONTROL import DDS_CONTROL
        #from common.clients.DAC_CONTROL    import DAC_Control
        from common.clients.NEW_DAC_CONTROL import DAC_Control
        from quick_actions.quick_actions import actions_widget
        from rotation.rotation_control import rotation_widget
        from common.clients.LINETRIGGER_CONTROL import linetriggerWidget
        gridLayout = QtWidgets.QGridLayout()

        gridLayout.addWidget(switchWidget(reactor, cxn), 0, 3, 1, 1)
        gridLayout.addWidget(pmtWidget(reactor), 0, 4, 1, 1)
        gridLayout.addWidget(DDS_CONTROL(reactor, cxn), 2, 4, 4, 2)
        gridLayout.addWidget(actions_widget(reactor, cxn), 3, 3, 2, 1)
        gridLayout.addWidget(rotation_widget(reactor, cxn), 4, 3, 2, 1)
        gridLayout.addWidget(DAC_Control(reactor), 0, 0, 7, 3)
        gridLayout.addWidget(linetriggerWidget(reactor), 2, 3, 1, 1)

        widget.setLayout(gridLayout)
        return widget