summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2017-02-26 10:30:29 +0100
committerDave Andreoli <dave@gurumeditation.it>2017-02-26 10:30:29 +0100
commit9231e530bf5efeebaa98f8220e87067fd06f2c5d (patch)
tree7d629f1603446584abc55d2ffce02bd67eeb6d47
parent6f92607ba4dd1f1fc922fa23daf7adea781a3cfa (diff)
New 1.19 API: elm.Progressbar.is_pulsing
with a stipid test
-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):
75 """ 75 """
76 elm_progressbar_pulse(self.obj, state) 76 elm_progressbar_pulse(self.obj, state)
77 77
78 property is_pulsing:
79 """ Get the pulsing state on a given progressbar widget.
80
81 :type: bool (**readonly**)
82
83 .. versionadded:: 1.19
84
85 """
86 def __get__(self):
87 return bool(elm_progressbar_is_pulsing_get(self.obj))
88
89 def is_pulsing_get(self):
90 return bool(elm_progressbar_is_pulsing_get(self.obj))
91
78 property value: 92 property value:
79 """The progress value (in percentage) on a given progress bar widget. 93 """The progress value (in percentage) on a given progress bar widget.
80 94
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":
15 Eina_Bool elm_progressbar_horizontal_get(const Evas_Object *obj) 15 Eina_Bool elm_progressbar_horizontal_get(const Evas_Object *obj)
16 void elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted) 16 void elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted)
17 Eina_Bool elm_progressbar_inverted_get(const Evas_Object *obj) 17 Eina_Bool elm_progressbar_inverted_get(const Evas_Object *obj)
18 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):
42 42
43def begin_test(obj, *args, **kwargs): 43def begin_test(obj, *args, **kwargs):
44 (pb1, pb2, pb3, pb4, pb5, pb6, pb7, pb8) = args 44 (pb1, pb2, pb3, pb4, pb5, pb6, pb7, pb8) = args
45 print("Pbar 2 is_pulsing: %s" % (pb2.is_pulsing))
45 pb2.pulse(True) 46 pb2.pulse(True)
47 print("Pbar 2 is_pulsing: %s" % (pb2.is_pulsing))
46 pb5.pulse(True) 48 pb5.pulse(True)
47 pb7.pulse(True) 49 pb7.pulse(True)
48 global my_progressbar_run 50 global my_progressbar_run
@@ -52,7 +54,9 @@ def begin_test(obj, *args, **kwargs):
52 my_progressbar_run = True 54 my_progressbar_run = True
53 55
54def end_test(obj, pb1, pb2, pb3, pb4, pb5, pb6, pb7, pb8): 56def end_test(obj, pb1, pb2, pb3, pb4, pb5, pb6, pb7, pb8):
57 print("Pbar 2 is_pulsing: %s" % (pb2.is_pulsing))
55 pb2.pulse(False) 58 pb2.pulse(False)
59 print("Pbar 2 is_pulsing: %s" % (pb2.is_pulsing))
56 pb5.pulse(False) 60 pb5.pulse(False)
57 pb7.pulse(False) 61 pb7.pulse(False)
58 global my_progressbar_run 62 global my_progressbar_run