Ejemplo n.º 1
0
	def __init__(self, qsize):
		self.qsize = qsize
		self.vin = None
		self.vout = None
		self.ifile = ''
		self.ofile = ''
		formdef = flp.parse_form('VeditForm', 'form')
		flp.create_full_form(self, formdef)
		self.form.show_form(FL.PLACE_SIZE, FL.TRUE, 'Vedit')
		fl.set_event_call_back(self.do_event)
Ejemplo n.º 2
0
	def __init__(self):
		parsetree = flp.parse_form('cmpaf_form','form')
		flp.create_full_form(self, parsetree)
		c = al.newconfig()
		c.setchannels(AL.MONO)
		c.setqueuesize(1800)
		self.iport = al.openport('cmpaf','r', c)
		self.oport = al.openport('cmpaf','w', c)
		self.do_adpcm = self.do_ulaw = self.do_diff = 0
		self.acstate = None
		self.form.show_form(FL.PLACE_SIZE, 1, 'compare audio formats')
Ejemplo n.º 3
0
	def __init__(self, number):
		#
		# First we parse the form
		parsetree = flp.parse_form('test_cb', 'main_form')
		#
		# Next we create it
		
		flp.create_full_form(self, parsetree)

		# And keep our number
		self.number = number
Ejemplo n.º 4
0
    def __init__(self, number):
        #
        # First we parse the form
        parsetree = flp.parse_form('test_cb', 'main_form')
        #
        # Next we create it

        flp.create_full_form(self, parsetree)

        # And keep our number
        self.number = number
Ejemplo n.º 5
0
Archivo: Vb.py Proyecto: carol8421/gosh
	def __init__(self):
		self.window = None
		formdef = flp.parse_form('VbForm', 'form')
		flp.create_full_form(self, formdef)
		self.setdefaults()
		if self.vmode <> VM_CONT:
			self.g_cont.hide_object()
		if self.vmode <> VM_BURST:
			self.g_burst.hide_object()
		if self.vmode <> VM_SINGLE:
			self.g_single.hide_object()
		if self.vmode <> VM_VCR:
			self.g_vcr.hide_object()
		if self.vformat <> 'compress':
			self.g_compress.hide_object()

		self.openvideo()
		self.makewindow()
		self.bindvideo()
		if self.use_24:
			self.optfullsizewindow()
		self.showform()
		fl.set_event_call_back(self.do_event)
Ejemplo n.º 6
0
	def __init__(self):
		self.window = None
		formdef = flp.parse_form('VbForm', 'form')
		flp.create_full_form(self, formdef)
		self.setdefaults()
		if self.vmode <> VM_CONT:
			self.g_cont.hide_object()
		if self.vmode <> VM_BURST:
			self.g_burst.hide_object()
		if self.vmode <> VM_SINGLE:
			self.g_single.hide_object()
		if self.vmode <> VM_VCR:
			self.g_vcr.hide_object()
		if self.vformat <> 'compress':
			self.g_compress.hide_object()

		self.openvideo()
		self.makewindow()
		self.bindvideo()
		if self.use_24:
			self.optfullsizewindow()
		self.showform()
		fl.set_event_call_back(self.do_event)
Ejemplo n.º 7
0
#
import fl		# The forms library
import FL		# Symbolic constants for the above
import flp		# The module to parse .fd files
import sys

# The following struct is created to hold the instance variables
# main_form, button1, button2 and exitbutton.

class struct: pass
container = struct()

#
# We now first parse the forms file

parsetree = flp.parse_form('test_nocb', 'main_form')

#
# Next we create it

flp.create_full_form(container, parsetree)

#
# And display it

container.main_form.show_form(FL.PLACE_MOUSE, 1, '')

#
# And interact until the exit button is pressed
while 1:
	selected_obj = fl.do_forms()
Ejemplo n.º 8
0
# Compare different audio compression schemes.
Ejemplo n.º 9
0
#
Ejemplo n.º 10
0
#
# Example 1 - Using fl in python without callbacks.
#
# The form is named 'main_form' and resides on file 'test_nocb.fd'.
# It has three objects named button1, button2 and exitbutton.
#
import fl		# The forms library
import FL		# Symbolic constants for the above
import flp		# The module to parse .fd files
import sys
# The following struct is created to hold the instance variables
# main_form, button1, button2 and exitbutton.
class struct: pass
container = struct()
#
# We now first parse the forms file
parsetree = flp.parse_form('test_nocb', 'main_form')
#
# Next we create it
flp.create_full_form(container, parsetree)
#
# And display it
container.main_form.show_form(FL.PLACE_MOUSE, 1, '')
#
# And interact until the exit button is pressed
while 1:
	selected_obj = fl.do_forms()
	if selected_obj == container.button1:
		print 'Button 1 selected'
	elif selected_obj == container.button2:
Ejemplo n.º 11
0
#! /usr/bin/env python
Ejemplo n.º 12
0
#
Ejemplo n.º 13
0
def first():
    try:
        os.unlink(cachename)
    except os.error:
        pass
    first = flp.parse_form(filename, 'first')
Ejemplo n.º 14
0
# Compare different audio compression schemes.
Ejemplo n.º 15
0
# Test bug in caching of forms
Ejemplo n.º 16
0
#! /usr/bin/env python
Ejemplo n.º 17
0
import sys

# The following struct is created to hold the instance variables
# main_form, button1, button2 and exitbutton.


class struct:
    pass


container = struct()

#
# We now first parse the forms file

parsetree = flp.parse_form('test_nocb', 'main_form')

#
# Next we create it

flp.create_full_form(container, parsetree)

#
# And display it

container.main_form.show_form(FL.PLACE_MOUSE, 1, '')

#
# And interact until the exit button is pressed
while 1:
    selected_obj = fl.do_forms()
Ejemplo n.º 18
0
def first():
	try:
		os.unlink(cachename)
	except os.error:
		pass
	first = flp.parse_form(filename, 'first')
Ejemplo n.º 19
0
#! /usr/bin/env python
Ejemplo n.º 20
0
#! /usr/bin/env python