On Thu, Dec 24, 2009 at 01:09, Gustavo Sverzut Barbieri <[email protected]> wrote: > On Wed, Dec 23, 2009 at 5:16 PM, daniele_athome > <[email protected]> wrote: >> Hello list. >> I'm trying to implement the python binding for the longpressed event >> of elementary List widget. >> The problem is that selected ListItem is passed to the callback as a >> integer, so I use some pyrex tricks to get the python wrapper. >> My code goes segv when I try to cast data received from >> elm_list_item_data_get() to a python object, that is, these lines: >> > > I introduced a framework to easy this conversion of event_info from C > to Python (see _callback_add_full) and also made it more efl-like, by > renaming _callback_remove() to _callback_del(), also the internals are > more similar and some errors I handle in Evas are now also fixed in > Elm (ie: delete the callback from the callback itself). > > Please help test. >
I did some tests and everything seem to work well. However, every List callback has the same problem: the incoming signature is ( List, List ) instead of the expected ( List, ListItem ). -- daniele_athome ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
