mirror of
https://github.com/dyne/FreeJ.git
synced 2026-02-11 15:20:48 +01:00
build system fixes also for debian
This commit is contained in:
24
scripts/python/test.py
Normal file
24
scripts/python/test.py
Normal file
@@ -0,0 +1,24 @@
|
||||
import freej
|
||||
import time
|
||||
import sys
|
||||
freej.set_debug(3)
|
||||
|
||||
# init context
|
||||
cx = freej.Context()
|
||||
cx.init(400,300,0,0)
|
||||
cx.config_check("keyboard.js")
|
||||
cx.plugger.refresh(cx)
|
||||
|
||||
# add a layer
|
||||
lay = freej.create_layer(cx,sys.argv[1])
|
||||
lay.start()
|
||||
lay.add_filter(cx.filters["vertigo"])
|
||||
lay.active = True
|
||||
cx.add_layer(lay)
|
||||
|
||||
# main loop
|
||||
while True:
|
||||
cx.cafudda(1.0)
|
||||
time.sleep(0.04)
|
||||
time.sleep(10)
|
||||
|
||||
Reference in New Issue
Block a user