Beispiel #1
0
    	
    	if type == 'basic':
    	    waves = int(config.get(confString, 'waves'))
    	    color = config.get(confString, 'color')
    	    coords = config.get(confString, 'coords')
    	    waveLength = float(config.get(confString, 'wavelength'))
    	    speed = float(config.get(confString, 'speed'))
    	    width = int(config.get(confString, 'width'))
    	    height = int(config.get(confString, 'height'))
    	    td = float(config.get(confString, 'delta'))
    	    frames = int(config.get(confString, 'frames'))
    	    duration = float(config.get(confString, 'time'))
    	    myDebug.dprint("Configuration read successfully")
    	    
    	    l = Layer(myDebug)
    	    l.initBasic(waves, color, td, coords, speed, waveLength, width, height)
    	    layers.append(l)
    	    
    	elif type == 'advanced':
    	    pass
    	elif type == 'layered':
    	    pass
    	elif type == 'vectors':
    	    pass
    	else:
            print("Unknown config file type: " + str(type))
            sys.exit()

    except ConfigParser.NoOptionError:
        print("Not all parameters specified for type: " + str(type))
        sys.exit()