summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/YalpClients/EflClient/list_test.edc6
-rwxr-xr-x[-rw-r--r--]src/YalpClients/EflClient/list_test_elem.py91
2 files changed, 48 insertions, 49 deletions
diff --git a/src/YalpClients/EflClient/list_test.edc b/src/YalpClients/EflClient/list_test.edc
index 079d8d5..22e4e17 100644
--- a/src/YalpClients/EflClient/list_test.edc
+++ b/src/YalpClients/EflClient/list_test.edc
@@ -3,7 +3,7 @@ collections
group
{
name: "huhu";
- min: 100 100;
+ min: 800 600;
parts
{
part
@@ -38,11 +38,11 @@ collections
rel1
{
- relative: 0.5 0.5;
+ relative: 0.0 0.5;
}
rel2
{
- relative: 1.0 1.0;
+ relative: 0.5 1.0;
}
}
}
diff --git a/src/YalpClients/EflClient/list_test_elem.py b/src/YalpClients/EflClient/list_test_elem.py
index a3fcc91..91b223c 100644..100755
--- a/src/YalpClients/EflClient/list_test_elem.py
+++ b/src/YalpClients/EflClient/list_test_elem.py
@@ -9,49 +9,48 @@ import emotion
import evas
import elementary
-def huhu(obj, it):
- print "guck guck";
-
-elementary.init()
-win = elementary.Window("test", elementary.ELM_WIN_BASIC);
-
-edje_file = os.path.join(os.path.dirname(sys.argv[0]),"list_test.edj")
-c = edje.Edje(win.canvas,file=edje_file,group="list")
-
-vid = emotion.Emotion(win.canvas,module_filename="xine");
-vid.file_set("/home/manut/Videos/2009-2.avi");
-
-c.part_swallow("video", vid)
-
-vid.resize(80,60);
-vid.show();
-vid.play = True;
-
-items = [("huhu",huhu),
- ("haha", huhu),
- ("hoho", huhu),
- ("hehe", huhu),
- ("hihi", huhu)];
-
-medialist = elementary.List(win);
-medialist.size_hint_weight_set(1.0, 1.0)
-medialist.size_hint_align_set(-1.0, -1.0)
-
-box0 = elementary.Box(win);
-box0.size_hint_weight_set(1.0, 1.0)
-win.resize_object_add(box0);
-box0.show();
-box0.pack_end(medialist);
-medialist.show();
-
-for item in items:
- print item[0]
- medialist.item_append(item[0], None, None, item[1]);
-
-medialist.go();
-
-win.resize(320,520);
-box0.show();
-win.show()
-#ecore.main_loop_begin();
-elementary.run();
+#from omniORB import CORBA, PortableServer
+#import CosNaming, YalpInterfaces, YalpInterfaces__POA
+
+def huhu(obj, it, xyz):
+ print "guck guck"
+
+
+def gui():
+ elementary.init()
+ win = elementary.Window("test", elementary.ELM_WIN_BASIC)
+
+ edje_file = os.path.join(os.path.dirname(sys.argv[0]), "list_test.edj")
+ c = edje.Edje(win.canvas, file = edje_file, group = "huhu")
+
+
+ items = [("huhu", huhu),
+ ("haha", huhu),
+ ("hoho", huhu),
+ ("hehe", huhu),
+ ("hihi", huhu)]
+
+ medialist = elementary.List(win);
+ medialist.size_hint_weight_set(1.0, 1.0)
+ medialist.size_hint_align_set(-1.0, -1.0)
+
+ box0 = elementary.Box(win)
+ win.resize_object_add(box0)
+ c.part_swallow("list", medialist)
+
+ box0.pack_end(medialist)
+ medialist.show()
+
+ for item in items:
+ print item[0]
+ medialist.item_append(item[0], None, None, item[1])
+
+ medialist.go()
+
+ win.resize(800, 600)
+
+ box0.show()
+ win.show()
+ elementary.run()
+
+gui()