INNER CODE UNIT · Python

ActionWorker

HaxL0p4/L0p4Map · ui/app.py:99

class ActionWorker(QThread):
    output = pyqtSignal(str)
    finished = pyqtSignal()

    def __init__(self, cmd: list):
        super().__init__()
        self.cmd = cmd

    def run(self):
        process = subprocess.Popen(
            self.cmd,
            stdout=subprocess.PIPE,
            stderr=subprocess.STDOUT,
            text=True
        )
        for riga in process.stdout:
            self.output.emit(riga.rstrip())
        process.wait()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…