> So Im asking if it is possible to add at least evas_object_box_add() to python
> bindings?
After much help from k-s at #e, I can provide patches which adds
part_box_append
to edje.
Here is the two patched file[1].
Best regards,
Laszlo
[1]:
Index: BINDINGS/python/python-edje/include/edje/c_edje.pxd
===================================================================
--- BINDINGS/python/python-edje/include/edje/c_edje.pxd (revision 42043)
+++ BINDINGS/python/python-edje/include/edje/c_edje.pxd (working copy)
@@ -191,6 +191,8 @@
void edje_object_part_unswallow(evas.c_evas.Evas_Object *obj,
evas.c_evas.Evas_Object *obj_swallow)
evas.c_evas.Evas_Object
*edje_object_part_swallow_get(evas.c_evas.Evas_Object *obj, char
*part)
+ evas.c_evas.Eina_Bool
edje_object_part_box_append(evas.c_evas.Evas_Object *obj, char *part,
evas.c_evas.Evas_Object *child)
+
char *edje_object_part_state_get(evas.c_evas.Evas_Object *obj,
char *part, double *val_ret)
int edje_object_part_drag_dir_get(evas.c_evas.Evas_Object *obj, char *part)
Index: BINDINGS/python/python-edje/edje/edje.c_edje_object.pxi
===================================================================
--- BINDINGS/python/python-edje/edje/edje.c_edje_object.pxi (revision 42043)
+++ BINDINGS/python/python-edje/edje/edje.c_edje_object.pxi (working copy)
@@ -477,6 +477,15 @@
o = edje_object_part_swallow_get(self.obj, part)
return evas.c_evas._Object_from_instance(<long>o)
+ def part_box_append(self, char *part, c_evas.Object obj):
+ """Adds an item to a BOX part.
+
+ Appends an item to the BOX edje part, where some box's properties
+ inherited. Like the color properties has some nice effect on the
+ box's childrens.
+ """
+ return bool(edje_object_part_box_append(self.obj, part, obj.obj))
+
def part_state_get(self, char *part):
"@rtype: (name, value)"
cdef double sv
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel