Esempio n. 1
0
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)
Esempio n. 2
0
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)
Esempio n. 3
0
File: Vb.py Progetto: carol8421/gosh
	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()
Esempio n. 4
0
	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()
Esempio n. 5
0
File: Vb.py Progetto: carol8421/gosh
	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
Esempio n. 6
0
	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
Esempio n. 7
0
#! /usr/bin/env python
Esempio n. 8
0
	def err(self, *args):
		gl.ringbell()
		apply(self.msg, args)
def fleep():
    gl.ringbell()
Esempio n. 10
0
# intercom -- use mike and headset to *talk* to a person on another host.
Esempio n. 11
0
def fleep():
    gl.ringbell()
Esempio n. 12
0
#! /usr/bin/env python
Esempio n. 13
0
#! /usr/bin/env python
Esempio n. 14
0
#! /usr/bin/env python