예제 #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)
예제 #2
0
파일: intercom.py 프로젝트: 8Banana/py1.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)
예제 #3
0
파일: Vb.py 프로젝트: 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()
예제 #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()
예제 #5
0
파일: Vb.py 프로젝트: 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
예제 #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
예제 #7
0
#! /usr/bin/env python
예제 #8
0
	def err(self, *args):
		gl.ringbell()
		apply(self.msg, args)
예제 #9
0
def fleep():
    gl.ringbell()
예제 #10
0
# intercom -- use mike and headset to *talk* to a person on another host.
예제 #11
0
def fleep():
    gl.ringbell()
예제 #12
0
파일: Vb.py 프로젝트: mcyril/ravel-ftn
#! /usr/bin/env python
예제 #13
0
#! /usr/bin/env python
예제 #14
0
파일: Vedit.py 프로젝트: mcyril/ravel-ftn
#! /usr/bin/env python