@dataclass
class Recording:
- filename: str
process: subprocess.Popen[bytes]
['-f', 'pulse', '-ac', '2', '-i', 'default', filename])
# pylint: disable=consider-using-with
recording = Recording(
- filename=filename,
process=subprocess.Popen(command, stdin=subprocess.PIPE))
stack.set_visible_child_name("recording")