Ejemplo n.º 1
0
      def __init__(self):
           #Call base class method
           QProcess.__init__(self)
           self.setProcessChannelMode(QProcess.MergedChannels)

           self.data = []
           self.final_data = None

           self.readyReadStandardOutput.connect(self.readStdOutput)
           self.finished.connect(self.killProcess)
Ejemplo n.º 2
0
    def __init__(self):
        #Call base class method
        QProcess.__init__(self)
        self.setProcessChannelMode(QProcess.MergedChannels)

        self.data = []
        self.final_data = None

        self.readyReadStandardOutput.connect(self.readStdOutput)
        self.finished.connect(self.killProcess)
	def __init__(self, port, cmdopts, parent):
		QProcess.__init__(self, parent)
		cmdopts.append('--server=%s' % settings.fgcom_server)
		cmdopts.append('--port=%d' % port)
		cmdopts.append('--callsign=%s' % FGCom_callsign())
		abs_exe_path = path.abspath(settings.fgcom_executable_path)
		self.setWorkingDirectory(path.dirname(abs_exe_path))
		self.setProgram(abs_exe_path)
		self.setArguments(cmdopts)
		self.setStandardErrorFile(settings.outputFileName('fgcom-stderr-port%d' % port, ext='log'))
Ejemplo n.º 4
0
 def __init__(self, name, tabtitle, hostip, port, protocol, command,
              starttime, outputfile, textbox):
     QProcess.__init__(self)
     self.id = -1
     self.name = name
     self.tabtitle = tabtitle
     self.hostip = hostip
     self.port = port
     self.protocol = protocol
     self.command = command
     self.starttime = starttime
     self.outputfile = outputfile
     self.display = textbox  # has its own display widget to be able to display its output in the GUI