コード例 #1
0
    def __init__(self, parent=None):
        super(StartModuleDockWidget, self).__init__(parent)
        self.ui = Ui_Form()
        self.ui.setupUi(self)

        QtCore.QObject.connect(self.ui.VirtualAmplifier,
                               QtCore.SIGNAL("clicked()"),
                               self.startVirtualAmplifier)

        QtCore.QObject.connect(self.ui.Amplifier, QtCore.SIGNAL("clicked()"),
                               self.startAmplifier)
        QtCore.QObject.connect(self.ui.Experiment, QtCore.SIGNAL("clicked()"),
                               self.startExperiment)
        QtCore.QObject.connect(self.ui.Pokaz, QtCore.SIGNAL("clicked()"),
                               self.startPokaz)
        QtCore.QObject.connect(self.ui.Demo, QtCore.SIGNAL("clicked()"),
                               self.startDemo)

        QtCore.QObject.connect(self.ui.AddMonitor, QtCore.SIGNAL("clicked()"),
                               self.addMonitor)
        QtCore.QObject.connect(self.ui.AddSpectrum, QtCore.SIGNAL("clicked()"),
                               self.addSpectrum)
        QtCore.QObject.connect(self.ui.AddExperiment,
                               QtCore.SIGNAL("clicked()"), self.addExperiment)
        QtCore.QObject.connect(self.ui.Stop, QtCore.SIGNAL("clicked()"),
                               self.stop)

        self.Config = ConfigParser.ConfigParser()
コード例 #2
0
class StartModuleDockWidget(QtGui.QDockWidget):
    """Dock widget which is used to configure all UGM properties"""
    def __init__(self, parent=None):
        super(StartModuleDockWidget, self).__init__(parent)
        self.ui = Ui_Form()
        self.ui.setupUi(self)

        QtCore.QObject.connect(self.ui.VirtualAmplifier,
                               QtCore.SIGNAL("clicked()"),
                               self.startVirtualAmplifier)

        QtCore.QObject.connect(self.ui.Amplifier, QtCore.SIGNAL("clicked()"),
                               self.startAmplifier)
        QtCore.QObject.connect(self.ui.Experiment, QtCore.SIGNAL("clicked()"),
                               self.startExperiment)
        QtCore.QObject.connect(self.ui.Pokaz, QtCore.SIGNAL("clicked()"),
                               self.startPokaz)
        QtCore.QObject.connect(self.ui.Demo, QtCore.SIGNAL("clicked()"),
                               self.startDemo)

        QtCore.QObject.connect(self.ui.AddMonitor, QtCore.SIGNAL("clicked()"),
                               self.addMonitor)
        QtCore.QObject.connect(self.ui.AddSpectrum, QtCore.SIGNAL("clicked()"),
                               self.addSpectrum)
        QtCore.QObject.connect(self.ui.AddExperiment,
                               QtCore.SIGNAL("clicked()"), self.addExperiment)
        QtCore.QObject.connect(self.ui.Stop, QtCore.SIGNAL("clicked()"),
                               self.stop)

        self.Config = ConfigParser.ConfigParser()

    def startVirtualAmplifier(self):
        os.system("python " + PATH + "/start.py virtual_amplifier")

    def startAmplifier(self):
        os.system("python " + PATH + "/start.py amplifier")

    def startExperiment(self):
        os.system("python " + PATH + "/start.py experiment")

    def startPokaz(self):
        os.system("python " + PATH + "/start.py pokaz")

    def startDemo(self):
        os.system("python " + PATH + "/start.py demo")

    def addMonitor(self):
        os.system("python " + PATH + "/start.py add_monitor")

    def addSpectrum(self):
        os.system("python " + PATH + "/start.py add_spectrum")

    def addExperiment(self):
        os.system("python " + PATH + "/start.py add_experiment")

    def stop(self):
        os.system("killall screen")
コード例 #3
0
class StartModuleDockWidget(QtGui.QDockWidget):
    """Dock widget which is used to configure all UGM properties"""
    
    def __init__(self, parent=None):
        super(StartModuleDockWidget, self).__init__(parent)
	self.ui = Ui_Form()
        self.ui.setupUi(self)
	
	
	QtCore.QObject.connect(self.ui.VirtualAmplifier, QtCore.SIGNAL("clicked()"), self.startVirtualAmplifier)

	QtCore.QObject.connect(self.ui.Amplifier, QtCore.SIGNAL("clicked()"), self.startAmplifier)
	QtCore.QObject.connect(self.ui.Experiment, QtCore.SIGNAL("clicked()"), self.startExperiment)
	QtCore.QObject.connect(self.ui.Pokaz, QtCore.SIGNAL("clicked()"), self.startPokaz)
	QtCore.QObject.connect(self.ui.Demo, QtCore.SIGNAL("clicked()"), self.startDemo)

	QtCore.QObject.connect(self.ui.AddMonitor, QtCore.SIGNAL("clicked()"), self.addMonitor)
	QtCore.QObject.connect(self.ui.AddSpectrum, QtCore.SIGNAL("clicked()"), self.addSpectrum)
	QtCore.QObject.connect(self.ui.AddExperiment, QtCore.SIGNAL("clicked()"), self.addExperiment)
	QtCore.QObject.connect(self.ui.Stop, QtCore.SIGNAL("clicked()"), self.stop)

	self.Config = ConfigParser.ConfigParser()


    def startVirtualAmplifier(self):
	os.system("python " + PATH + "/start.py virtual_amplifier" )

    def startAmplifier(self):
	os.system("python " + PATH + "/start.py amplifier" )

    def startExperiment(self):
	os.system("python " + PATH + "/start.py experiment" )

    def startPokaz(self):
	os.system("python " + PATH + "/start.py pokaz" )

    def startDemo(self):
	os.system("python " + PATH + "/start.py demo" )



    def addMonitor(self):
	os.system("python " + PATH + "/start.py add_monitor" )

    def addSpectrum(self):
	os.system("python " + PATH + "/start.py add_spectrum" )

    def addExperiment(self):
	os.system("python " + PATH + "/start.py add_experiment" )

    def stop(self):
	os.system("killall screen" )
コード例 #4
0
    def __init__(self, parent=None):
        super(StartModuleDockWidget, self).__init__(parent)
	self.ui = Ui_Form()
        self.ui.setupUi(self)
	
	
	QtCore.QObject.connect(self.ui.VirtualAmplifier, QtCore.SIGNAL("clicked()"), self.startVirtualAmplifier)

	QtCore.QObject.connect(self.ui.Amplifier, QtCore.SIGNAL("clicked()"), self.startAmplifier)
	QtCore.QObject.connect(self.ui.Experiment, QtCore.SIGNAL("clicked()"), self.startExperiment)
	QtCore.QObject.connect(self.ui.Pokaz, QtCore.SIGNAL("clicked()"), self.startPokaz)
	QtCore.QObject.connect(self.ui.Demo, QtCore.SIGNAL("clicked()"), self.startDemo)

	QtCore.QObject.connect(self.ui.AddMonitor, QtCore.SIGNAL("clicked()"), self.addMonitor)
	QtCore.QObject.connect(self.ui.AddSpectrum, QtCore.SIGNAL("clicked()"), self.addSpectrum)
	QtCore.QObject.connect(self.ui.AddExperiment, QtCore.SIGNAL("clicked()"), self.addExperiment)
	QtCore.QObject.connect(self.ui.Stop, QtCore.SIGNAL("clicked()"), self.stop)

	self.Config = ConfigParser.ConfigParser()