The closure that updates the filesize display just captures it, it
doesn't need to fish it out of the global.
@dataclass
class Recording:
@dataclass
class Recording:
process: subprocess.Popen[bytes]
process: subprocess.Popen[bytes]
['-f', 'pulse', '-ac', '2', '-i', 'default', filename])
# pylint: disable=consider-using-with
recording = Recording(
['-f', 'pulse', '-ac', '2', '-i', 'default', filename])
# pylint: disable=consider-using-with
recording = Recording(
process=subprocess.Popen(command, stdin=subprocess.PIPE))
stack.set_visible_child_name("recording")
process=subprocess.Popen(command, stdin=subprocess.PIPE))
stack.set_visible_child_name("recording")