@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")
def make_share_control() -> Gtk.CheckButton:
- can_share = os.path.exists('/sys/module/v4l2looback')
+ can_share = os.path.exists('/sys/module/v4l2loopback')
control = Gtk.CheckButton(
label='Share Webcam', sensitive=can_share, active=can_share)
control.set_margin_start(20)