def remotedialog(): gl.foreground() gl.ringbell() m1 = user + ' wants to talk to you over the audio channel.' m2 = 'If it\'s OK, put on your headset and click Yes.' m3 = 'If you\'re too busy, click No.' return fl.show_question(m1, m2, m3)
def cb_capture(self, *args): if self.capturing: raise StopCapture if not self.b_capture.get_button(): return if not self.video or not self.vformat: gl.ringbell() return if self.vmode == VM_CONT: self.cont_capture() elif self.vmode == VM_BURST: self.burst_capture() elif self.vmode == VM_SINGLE: self.single_capture(None, None) elif self.vmode == VM_VCR: self.vcr_capture()
def write_frame(self, t, data): t = t * self.speed_factor if not self.vout: gl.ringbell() return 0 if self.convertor: data = self.convertor(data, len(data), 1) elif self.mono: if self.mono_use_thresh: data = imageop.grey2mono(data, \ len(data), 1,\ self.mono_thresh) else: data = imageop.dither2mono(data, \ len(data), 1) try: self.vout.writeframe(int(t), data, None) except IOError, msg: self.reset() if msg == (0, 'Error 0'): msg = 'disk full??' fl.show_message('IOError', str(msg), '') return 0
#! /usr/bin/env python
def err(self, *args): gl.ringbell() apply(self.msg, args)
def fleep(): gl.ringbell()
# intercom -- use mike and headset to *talk* to a person on another host.