Enlightenment CVS committal

Author  : barbieri
Project : e17
Module  : proto/python-efl

Dir     : e17/proto/python-efl/python-emotion/examples


Modified Files:
        emotion_test.py 


Log Message:
Make Python-Emotion example work with last Emotion changes.

===================================================================
RCS file: /cvs/e/e17/proto/python-efl/python-emotion/examples/emotion_test.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- emotion_test.py     1 Sep 2007 16:10:17 -0000       1.3
+++ emotion_test.py     4 Nov 2007 02:21:11 -0000       1.4
@@ -183,7 +183,7 @@
 
     def frame_signal_speed_cb(self, frame, emission, source):
         x, y = frame.part_drag_value_get(source)
-        spd = 255 * y
+        spd = int(255 * y)
         frame.color = (spd, spd, spd, spd)
         frame.part_text_set("video_speed_txt", "%0.0f" % spd)
 
@@ -366,7 +366,7 @@
                       default=(800, 600),
                       help="use given window geometry")
     parser.add_option("-e", "--engine", type="choice",
-                      choices=("xine", "gst"), default="xine",
+                      choices=("xine", "gstreamer"), default="xine",
                       help=("which multimedia engine to use (xine, gst), "
                             "default=%default"))
     parser.add_option("-d", "--display", type="choice",
@@ -400,11 +400,7 @@
         }
     cls = display_map[options.display]
 
-    engine_map = {
-        "xine": "emotion_decoder_xine.so",
-        "gst": "emotion_decoder_gstreamer.so",
-        }
-    media_module = engine_map[options.engine]
+    media_module = options.engine
 
     w, h = options.geometry
     ee = cls(w=w, h=h)



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to