aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--efl/elementary/progressbar.pxi14
-rw-r--r--efl/elementary/progressbar_cdef.pxi1
-rw-r--r--examples/elementary/test_progressbar.py4
3 files changed, 19 insertions, 0 deletions
diff --git a/efl/elementary/progressbar.pxi b/efl/elementary/progressbar.pxi
index 1782ffa..7224c7a 100644
--- a/efl/elementary/progressbar.pxi
+++ b/efl/elementary/progressbar.pxi
@@ -75,6 +75,20 @@ cdef class Progressbar(LayoutClass):
"""
elm_progressbar_pulse(self.obj, state)
+ property is_pulsing:
+ """ Get the pulsing state on a given progressbar widget.
+
+ :type: bool (**readonly**)
+
+ .. versionadded:: 1.19
+
+ """
+ def __get__(self):
+ return bool(elm_progressbar_is_pulsing_get(self.obj))
+
+ def is_pulsing_get(self):
+ return bool(elm_progressbar_is_pulsing_get(self.obj))
+
property value:
"""The progress value (in percentage) on a given progress bar widget.
diff --git a/efl/elementary/progressbar_cdef.pxi b/efl/elementary/progressbar_cdef.pxi
index 5a2f1f5..31b62c0 100644
--- a/efl/elementary/progressbar_cdef.pxi
+++ b/efl/elementary/progressbar_cdef.pxi
@@ -15,3 +15,4 @@ cdef extern from "Elementary.h":
Eina_Bool elm_progressbar_horizontal_get(const Evas_Object *obj)
void elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted)
Eina_Bool elm_progressbar_inverted_get(const Evas_Object *obj)
+ Eina_Bool elm_progressbar_is_pulsing_get(const Evas_Object *obj)
diff --git a/examples/elementary/test_progressbar.py b/examples/elementary/test_progressbar.py
index cee68e8..7c6a7db 100644
--- a/examples/elementary/test_progressbar.py
+++ b/examples/elementary/test_progressbar.py
@@ -42,7 +42,9 @@ def pb_timer_cb(pb1, pb2, pb3, pb4, pb5, pb6, pb7, pb8):
def begin_test(obj, *args, **kwargs):
(pb1, pb2, pb3, pb4, pb5, pb6, pb7, pb8) = args
+ print("Pbar 2 is_pulsing: %s" % (pb2.is_pulsing))
pb2.pulse(True)
+ print("Pbar 2 is_pulsing: %s" % (pb2.is_pulsing))
pb5.pulse(True)
pb7.pulse(True)
global my_progressbar_run
@@ -52,7 +54,9 @@ def begin_test(obj, *args, **kwargs):
my_progressbar_run = True
def end_test(obj, pb1, pb2, pb3, pb4, pb5, pb6, pb7, pb8):
+ print("Pbar 2 is_pulsing: %s" % (pb2.is_pulsing))
pb2.pulse(False)
+ print("Pbar 2 is_pulsing: %s" % (pb2.is_pulsing))
pb5.pulse(False)
pb7.pulse(False)
global my_progressbar_run