This is way too useless and discouraged.

Really, Python-EFL is all about bringing pythonic EFL, not just C in
Python... so the standard way is to return True or False, no need to
use ecore.ECORE_CALLBACK_CANCEL or ecore.ECORE_CALLBACK_RENEW...
actually not even in C we use those explicitly.


On Thu, Oct 15, 2009 at 8:12 PM, Enlightenment SVN
<[email protected]> wrote:
> Log:
>  py-ecore: add ECORE_CALLBACK_CANCEL/RENEW
> Author:       billiob
> Date:         2009-10-15 16:12:38 -0700 (Thu, 15 Oct 2009)
> New Revision: 43108
>
> Modified:
>  trunk/BINDINGS/python/python-ecore/ecore/__init__.py 
> trunk/BINDINGS/python/python-elementary/tests/test.py
>
> Modified: trunk/BINDINGS/python/python-ecore/ecore/__init__.py
> ===================================================================
> --- trunk/BINDINGS/python/python-ecore/ecore/__init__.py        2009-10-15 
> 23:12:13 UTC (rev 43107)
> +++ trunk/BINDINGS/python/python-ecore/ecore/__init__.py        2009-10-15 
> 23:12:38 UTC (rev 43108)
> @@ -27,6 +27,8 @@
>      Animator, Timer, Idler, IdleExiter, IdleEnterer, FdHandler, \
>      Event, EventHandler
>
> +ECORE_CALLBACK_CANCEL = 0
> +ECORE_CALLBACK_RENEW = 1
>
>  ECORE_FD_NONE = 0
>  ECORE_FD_READ = 1
>
> Modified: trunk/BINDINGS/python/python-elementary/tests/test.py
> ===================================================================
> --- trunk/BINDINGS/python/python-elementary/tests/test.py       2009-10-15 
> 23:12:13 UTC (rev 43107)
> +++ trunk/BINDINGS/python/python-elementary/tests/test.py       2009-10-15 
> 23:12:38 UTC (rev 43108)
> @@ -1569,10 +1569,10 @@
>     pb3.value_set(progress)
>     pb6.value_set(progress)
>     if progress < 1.0:
> -        return 1
> +        return ecore.ECORE_CALLBACK_RENEW
>     global my_progressbar_run
>     my_progressbar_run = False
> -    return 0
> +    return ecore.ECORE_CALLBACK_CANCEL
>
>  def my_progressbar_test_start(obj, event, data):
>     (pb1, pb2, pb3, pb4, pb5, pb6, pb7) = data
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> enlightenment-svn mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>



-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: [email protected]
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to