Hello,
I'm trying to use elementary objects together with an edje-layout. My code
can be seen below. Currently the list is drawn on top of the window, but I
expect it to be drawn on the bottom half.
I'd be glad to get any hints to resolve this issue.
Regards,
Nicole
---------------------------list_test.py-------------------------
#!/usr/bin/env python
import edje
import ecore.evas
import sys
import os
import ecore
import emotion
import evas
import elementary
def huhu(obj, it, xyz):
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 = "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", box0)
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()
---------------------------list_test.edc-------------------------
collections
{
group
{
name: "huhu";
parts
{
part
{
name: "main";
type: RECT;
mouse_events: 0;
description
{
state: "default" 0.0;
rel1
{
relative: 0.0 0.0;
offset: 0 0;
}
rel2
{
relative: 1.0 1.0;
offset: 0 0;
}
}
}
part
{
name: "list";
type: RECT;
mouse_events: 0;
description
{
state: "default" 0.0;
align: 0 0;
color: 30 89 114 175;
rel1
{
relative: 0.0 0.5;
offset: 0 0;
}
rel2
{
relative: 1.0 1.0;
offset: -1 -1;
}
}
}
}
}
}
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users