Hi Folks,
This small patch adds edje_object_part_table_child_get to python.
I needed it. Hope it's useful for someone else :)
Cheers,
Eduardo Felipe.
diff --git a/BINDINGS/python/python-edje/edje/edje.c_edje_object.pxi
b/BINDINGS/python/python-edje/edje/edje.c_edje_object.pxi
--- a/BINDINGS/python/python-edje/edje/edje.c_edje_object.pxi
+++ b/BINDINGS/python/python-edje/edje/edje.c_edje_object.pxi
@@ -679,6 +679,19 @@ cdef public class Edje(evas.c_evas.Object) [object PyEdje,
type PyEdje_Type]:
"""
return bool(edje_object_part_table_clear(self.obj, part, clear))
+ def part_table_child_get(self, char *part, int row, int column):
+ """Retrieve a child from a table.
+
+ @parm: B{part} TABLE part to get child from.
+ @parm: B{row} row index of the child.
+ @parm: B{column} column index of the child.
+
+ @rtype: L{evas.c_evas.Object}
+ """
+ cdef evas.c_evas.Evas_Object *o
+ o = edje_object_part_table_child_get(self.obj, part, row, column)
+ return evas.c_evas._Object_from_instance(<long>o)
+
def part_state_get(self, char *part):
"@rtype: (name, value)"
cdef double sv
diff --git a/BINDINGS/python/python-edje/include/edje/c_edje.pxd
b/BINDINGS/python/python-edje/include/edje/c_edje.pxd
--- a/BINDINGS/python/python-edje/include/edje/c_edje.pxd
+++ b/BINDINGS/python/python-edje/include/edje/c_edje.pxd
@@ -318,6 +318,7 @@ cdef extern from "Edje.h":
evas.c_evas.Eina_Bool
edje_object_part_table_unpack(evas.c_evas.Evas_Object *obj, char *part,
evas.c_evas.Evas_Object *child)
evas.c_evas.Eina_Bool
edje_object_part_table_col_row_size_get(evas.c_evas.Evas_Object *obj, char
*part, int *cols, int *rows)
evas.c_evas.Eina_Bool edje_object_part_table_clear(evas.c_evas.Evas_Object
*obj, char *part, int clear)
+ evas.c_evas.Evas_Object
*edje_object_part_table_child_get(evas.c_evas.Evas_Object *obj, char *part,
unsigned int col, unsigned int row)
char *edje_object_part_state_get(evas.c_evas.Evas_Object *obj, char *part,
double *val_ret)
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel