summaryrefslogtreecommitdiff
path: root/src/YalpClients/EflClient/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/YalpClients/EflClient/main.py')
-rwxr-xr-xsrc/YalpClients/EflClient/main.py11
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)