diff options
| author | Nicole Vreden <damba@mecka.net> | 2009-12-03 00:43:00 +0100 |
|---|---|---|
| committer | Nicole Vreden <damba@mecka.net> | 2009-12-03 00:43:00 +0100 |
| commit | 07a2982480cb72a7ff7049e0d82ee45f833739e0 (patch) | |
| tree | 8a0009131931aa3ebbbc7ed6a2123b1480565f38 /src/YalpClients/EflClient/main.py | |
| parent | d50f59a615374953949a60eb51206008c66cf01e (diff) | |
EflClient: Added moving bars
- altered edc-file for moving bar with button
- moved video to background
Signed-off-by: Nicole Vreden <damba@mecka.net>
Diffstat (limited to 'src/YalpClients/EflClient/main.py')
| -rwxr-xr-x | src/YalpClients/EflClient/main.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/YalpClients/EflClient/main.py b/src/YalpClients/EflClient/main.py index 9ee7a09..9afe42a 100755 --- a/src/YalpClients/EflClient/main.py +++ b/src/YalpClients/EflClient/main.py @@ -5,6 +5,8 @@ import ecore.evas import sys import os import ecore +import emotion +import evas # Parse command line from optparse import OptionParser @@ -31,7 +33,7 @@ elif options.engine == "x11-16": print "warning: x11-16 is not supported, fallback to x11" f = ecore.evas.SoftwareX11 -ee = ecore.evas.SoftwareX11(w=400, h=400) +ee = ecore.evas.SoftwareX11(w=800, h=600) edje.frametime_set(1.0 / options.fps) edje_file = os.path.join(os.path.dirname(sys.argv[0]),"yalp_gui.edj") @@ -39,6 +41,13 @@ edje_file = os.path.join(os.path.dirname(sys.argv[0]),"yalp_gui.edj") c = edje.Edje(ee.evas,file=edje_file,group="yalp") c.size = ee.evas.size +vid = emotion.Emotion(ee.evas,module_filename="xine"); +vid.file_set("Lordi.mpg"); +c.part_swallow("video", vid) + +vid.show() +vid.play = True + def button_clicked(obj, signal,source): print "Huhu"; c.signal_callback_add("mouse,clicked,1","button",button_clicked) |
