parent
0190d16c05
commit
6fbe0ba320
|
@ -67,6 +67,7 @@ cdef extern from "Elementary.h":
|
|||
void elm_transit_duration_set(Elm_Transit *transit, double duration)
|
||||
double elm_transit_duration_get(Elm_Transit *transit)
|
||||
void elm_transit_go(Elm_Transit *transit)
|
||||
void elm_transit_go_in(Elm_Transit *transit, double seconds)
|
||||
void elm_transit_paused_set(Elm_Transit *transit, Eina_Bool paused)
|
||||
Eina_Bool elm_transit_paused_get(Elm_Transit *transit)
|
||||
double elm_transit_progress_value_get(Elm_Transit *transit)
|
||||
|
|
|
@ -618,6 +618,16 @@ cdef class Transit(object):
|
|||
"""
|
||||
elm_transit_go(self.obj)
|
||||
|
||||
def go_in(self, seconds):
|
||||
"""Starts the transition in given seconds.
|
||||
|
||||
:param float seconds: The interval value in seconds
|
||||
|
||||
.. versionadded:: 1.14
|
||||
|
||||
"""
|
||||
elm_transit_go_in(self.obj, seconds)
|
||||
|
||||
property paused:
|
||||
"""Pause/Resume the transition.
|
||||
|
||||
|
|
|
@ -69,8 +69,8 @@ def transit_wipe(obj):
|
|||
trans.effect_wipe_add(ELM_TRANSIT_EFFECT_WIPE_TYPE_HIDE,
|
||||
ELM_TRANSIT_EFFECT_WIPE_DIR_RIGHT)
|
||||
|
||||
trans.duration = 5.0
|
||||
trans.go()
|
||||
trans.duration = 2.0
|
||||
trans.go_in(3.0)
|
||||
|
||||
def transit_del_cb(transit, *args, **kwargs):
|
||||
obj = args[0]
|
||||
|
@ -182,7 +182,7 @@ def transit_clicked(obj, item=None):
|
|||
bt.show()
|
||||
bt.callback_clicked_add(transit_rotation_color)
|
||||
|
||||
bt = Button(win, text="Wipe Effect", size_hint_weight=EXPAND_BOTH)
|
||||
bt = Button(win, text="Wipe Effect (in 3 sec)", size_hint_weight=EXPAND_BOTH)
|
||||
bx.pack_end(bt)
|
||||
bt.show()
|
||||
bt.callback_clicked_add(transit_wipe)
|
||||
|
|
Loading…
Reference in New Issue