summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--efl/elementary/calendar_elm.pyx13
-rw-r--r--efl/elementary/diskselector.pyx4
-rw-r--r--efl/elementary/segment_control.pyx4
-rw-r--r--efl/elementary/thumb.pyx3
-rw-r--r--efl/elementary/transit.pyx6
5 files changed, 13 insertions, 17 deletions
diff --git a/efl/elementary/calendar_elm.pyx b/efl/elementary/calendar_elm.pyx
index c19b84b..5a0d944 100644
--- a/efl/elementary/calendar_elm.pyx
+++ b/efl/elementary/calendar_elm.pyx
@@ -217,18 +217,15 @@ cdef class CalendarMark(object):
217 217
218 Example:: 218 Example::
219 219
220 import time 220 from datetime import date, timedelta
221 from datetime import date
222 221
223 cal = Calendar(win) 222 cal = Calendar(win)
224 223
225 current_time = time.time() + 5 * 86400 224 selected_time = date.today() + timedelta(5)
226 selected_time = date.fromtimestamp(current_time) 225 cal.mark_add("holiday", selected_time, ELM_CALENDAR_ANNUALLY)
227 CalendarMark(cal, "holiday", selected_time, ELM_CALENDAR_ANNUALLY)
228 226
229 current_time = time.time() + 1 * 86400 227 selected_time = date.today() + timedelta(1)
230 selected_time = date.fromtimestamp(current_time) 228 cal.mark_add("checked", selected_time, ELM_CALENDAR_UNIQUE)
231 CalendarMark(cal, "checked", selected_time, ELM_CALENDAR_UNIQUE)
232 229
233 cal.marks_draw() 230 cal.marks_draw()
234 231
diff --git a/efl/elementary/diskselector.pyx b/efl/elementary/diskselector.pyx
index dae31e3..726afb0 100644
--- a/efl/elementary/diskselector.pyx
+++ b/efl/elementary/diskselector.pyx
@@ -110,9 +110,7 @@ cdef class DiskselectorItem(ObjectItem):
110 Simple example (with no function callback or data associated):: 110 Simple example (with no function callback or data associated)::
111 111
112 disk = Diskselector(win) 112 disk = Diskselector(win)
113 ic = Icon(win) 113 ic = Icon(win, file="path/to/image", resizable=(True, True))
114 ic.file_set("path/to/image")
115 ic.resizable_set(EINA_TRUE, EINA_TRUE)
116 disk.item_append("label", ic) 114 disk.item_append("label", ic)
117 115
118 .. seealso:: 116 .. seealso::
diff --git a/efl/elementary/segment_control.pyx b/efl/elementary/segment_control.pyx
index 8431cd3..ab4ac61 100644
--- a/efl/elementary/segment_control.pyx
+++ b/efl/elementary/segment_control.pyx
@@ -250,9 +250,7 @@ cdef class SegmentControl(LayoutClass):
250 Simple example:: 250 Simple example::
251 251
252 sc = SegmentControl(win) 252 sc = SegmentControl(win)
253 ic = Icon(win) 253 ic = Icon(win, file="path/to/image", resizable=(True, True))
254 ic.file_set("path/to/image")
255 ic.resizable_set(True, True)
256 sc.item_add(ic, "label") 254 sc.item_add(ic, "label")
257 sc.show() 255 sc.show()
258 256
diff --git a/efl/elementary/thumb.pyx b/efl/elementary/thumb.pyx
index 100eecb..fa82b09 100644
--- a/efl/elementary/thumb.pyx
+++ b/efl/elementary/thumb.pyx
@@ -419,7 +419,8 @@ cdef class Thumb(Object):
419 This must be called before the objects are created to be sure no object is 419 This must be called before the objects are created to be sure no object is
420 visible and no generation started. 420 visible and no generation started.
421 421
422 Example of usage:: 422 ..
423 Example of usage:
423 424
424 #include <Elementary.h> 425 #include <Elementary.h>
425 #ifndef ELM_LIB_QUICKLAUNCH 426 #ifndef ELM_LIB_QUICKLAUNCH
diff --git a/efl/elementary/transit.pyx b/efl/elementary/transit.pyx
index 5834ff9..91ec9cd 100644
--- a/efl/elementary/transit.pyx
+++ b/efl/elementary/transit.pyx
@@ -32,12 +32,14 @@ upon completion).
32 32
33Example:: 33Example::
34 34
35 t = elementary.Transit() 35 from efl.elementary.transit import Transit, ELM_TRANSIT_TWEEN_MODE_DECELERATE
36
37 t = Transit()
36 t.object_add(obj) 38 t.object_add(obj)
37 t.effect_translation_add(0, 0, 280, 280) 39 t.effect_translation_add(0, 0, 280, 280)
38 t.duration = 1 40 t.duration = 1
39 t.auto_reverse = True 41 t.auto_reverse = True
40 t.tween_mode = elementary.ELM_TRANSIT_TWEEN_MODE_DECELERATE 42 t.tween_mode = ELM_TRANSIT_TWEEN_MODE_DECELERATE
41 t.repeat_times = 3 43 t.repeat_times = 3
42 44
43Some transition effects are used to change the properties of objects. They 45Some transition effects are used to change the properties of objects. They