summaryrefslogtreecommitdiff
path: root/efl
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2014-02-23 15:43:15 +0100
committerdavemds <dave@gurumeditation.it>2014-02-23 15:43:15 +0100
commit740ff9a00915871f136f26a57acd6ecc819d8eaf (patch)
tree0dc2a6bea0591aa8380368578597bd9d687df85b /efl
parent166193b716e35ef9b72253c6df743ff4eb5c30f7 (diff)
Python-EFL: added Entry API: select_region_set(start, end)
Diffstat (limited to 'efl')
-rw-r--r--efl/elementary/entry.pxd1
-rw-r--r--efl/elementary/entry.pyx15
2 files changed, 16 insertions, 0 deletions
diff --git a/efl/elementary/entry.pxd b/efl/elementary/entry.pxd
index dd912c6..9932846 100644
--- a/efl/elementary/entry.pxd
+++ b/efl/elementary/entry.pxd
@@ -74,6 +74,7 @@ cdef extern from "Elementary.h":
74 Eina_Bool elm_entry_editable_get(Evas_Object *obj) 74 Eina_Bool elm_entry_editable_get(Evas_Object *obj)
75 void elm_entry_select_none(Evas_Object *obj) 75 void elm_entry_select_none(Evas_Object *obj)
76 void elm_entry_select_all(Evas_Object *obj) 76 void elm_entry_select_all(Evas_Object *obj)
77 void elm_entry_select_region_set(Evas_Object *obj, int start, int end)
77 Eina_Bool elm_entry_cursor_next(Evas_Object *obj) 78 Eina_Bool elm_entry_cursor_next(Evas_Object *obj)
78 Eina_Bool elm_entry_cursor_prev(Evas_Object *obj) 79 Eina_Bool elm_entry_cursor_prev(Evas_Object *obj)
79 Eina_Bool elm_entry_cursor_up(Evas_Object *obj) 80 Eina_Bool elm_entry_cursor_up(Evas_Object *obj)
diff --git a/efl/elementary/entry.pyx b/efl/elementary/entry.pyx
index dc61ead..7e975d9 100644
--- a/efl/elementary/entry.pyx
+++ b/efl/elementary/entry.pyx
@@ -1099,6 +1099,21 @@ cdef class Entry(LayoutClass):
1099 This selects all text within the entry.""" 1099 This selects all text within the entry."""
1100 elm_entry_select_all(self.obj) 1100 elm_entry_select_all(self.obj)
1101 1101
1102 def select_region_set(self, int start, int end):
1103 """select_region_set()
1104
1105 This selects a region of text within the entry.
1106
1107 :param start: The starting position
1108 :type start: int
1109 :param end: The ending position
1110 :type end: int
1111
1112 .. versionadded: 1.9
1113
1114 """
1115 elm_entry_select_region_set(self.obj, start, end)
1116
1102 def cursor_next(self): 1117 def cursor_next(self):
1103 """cursor_next() 1118 """cursor_next()
1104 1119