davemds pushed a commit to branch master. http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=00118986e64c705ae8a2a05c09f13526678a4f70
commit 00118986e64c705ae8a2a05c09f13526678a4f70 Author: davemds <d...@gurumeditation.it> Date: Sat Mar 1 17:59:03 2014 +0100 Python-EFL: New 1.9 API: Object.focus_highlight_style --- efl/elementary/object.pxd | 2 ++ efl/elementary/object.pyx | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/efl/elementary/object.pxd b/efl/elementary/object.pxd index 24f0d48..d640624 100644 --- a/efl/elementary/object.pxd +++ b/efl/elementary/object.pxd @@ -104,6 +104,8 @@ cdef extern from "Elementary.h": Evas_Object * elm_object_focused_object_get(const_Evas_Object *obj) void elm_object_tree_focus_allow_set(Evas_Object *obj, Eina_Bool focusable) Eina_Bool elm_object_tree_focus_allow_get(Evas_Object *obj) + Eina_Bool elm_object_focus_highlight_style_set(Evas_Object *obj, const_char *style) + const_char * elm_object_focus_highlight_style_get(const_Evas_Object *obj) # Object - Mirroring (elm_mirroring.h) Eina_Bool elm_object_mirrored_get(Evas_Object *obj) diff --git a/efl/elementary/object.pyx b/efl/elementary/object.pyx index 99e6825..fe96d0b 100644 --- a/efl/elementary/object.pyx +++ b/efl/elementary/object.pyx @@ -1150,6 +1150,30 @@ cdef class Object(evasObject): def focused_object_get(self): return object_from_instance(elm_object_focused_object_get(self.obj)) + property focus_highlight_style: + """The focus highlight style name to be used. + + :type: string + + .. note:: This overrides the style which is set by + :py:func:`Win.focus_highlight_style_set()`. + + .. versionadded:: 1.9 + + """ + def __set__(self, style): + if isinstance(style, unicode): style = PyUnicode_AsUTF8String(style) + elm_object_focus_highlight_style_set(self.obj, + <const_char *>style if style is not None else NULL) + def __get__(self): + return elm_object_focus_highlight_style_get(self.obj) + + def focus_highlight_style_set(self, style): + if isinstance(style, unicode): style = PyUnicode_AsUTF8String(style) + elm_object_focus_highlight_style_set(self.obj, + <const_char *>style if style is not None else NULL) + def focus_highlight_style_get(self): + return elm_object_focus_highlight_style_get(self.obj) property tree_focus_allow: """Whether the Elementary object and its children are focusable --