aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2017-07-22 17:39:23 +0200
committerDave Andreoli <dave@gurumeditation.it>2017-07-22 17:39:23 +0200
commitc5759b6d67b20d7e4f3f4aacf8c013eef8af7afe (patch)
treee155bc9b8f30ea2494f9ba74096f2e04a5c057d2
parentNew 1.20 API: elm.Genlist.multi_select_mode (diff)
downloadpython-efl-c5759b6d67b20d7e4f3f4aacf8c013eef8af7afe.tar.gz
New 1.20 API: elm.Menu.open()
-rw-r--r--efl/elementary/menu.pxi10
-rw-r--r--efl/elementary/menu_cdef.pxi1
2 files changed, 11 insertions, 0 deletions
diff --git a/efl/elementary/menu.pxi b/efl/elementary/menu.pxi
index fdada0a..223f75b 100644
--- a/efl/elementary/menu.pxi
+++ b/efl/elementary/menu.pxi
@@ -317,6 +317,16 @@ cdef class Menu(Object):
"""
elm_menu_move(self.obj, x, y)
+ def open(self):
+ """Open a closed menu
+
+ Show the menu with no child sub-menus expanded.
+
+ .. versionadded:: 1.20
+
+ """
+ elm_menu_open(self.obj)
+
def close(self):
"""Close a opened menu
diff --git a/efl/elementary/menu_cdef.pxi b/efl/elementary/menu_cdef.pxi
index bf734ee..2ab068a 100644
--- a/efl/elementary/menu_cdef.pxi
+++ b/efl/elementary/menu_cdef.pxi
@@ -4,6 +4,7 @@ cdef extern from "Elementary.h":
Evas_Object *elm_menu_parent_get(const Evas_Object *obj)
void elm_menu_move(Evas_Object *obj, Evas_Coord x, Evas_Coord y)
void elm_menu_close(Evas_Object *obj)
+ void elm_menu_open(Evas_Object *obj)
Eina_List *elm_menu_items_get(const Evas_Object *obj)
Evas_Object *elm_menu_item_object_get(const Elm_Object_Item *it)
Elm_Object_Item *elm_menu_item_add(Evas_Object *obj, Elm_Object_Item *parent, const char *icon, const char *label, Evas_Smart_Cb func, void *data)