davemds pushed a commit to branch master.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=c03464e343508aeee7c36f09d475fdfac1c50707

commit c03464e343508aeee7c36f09d475fdfac1c50707
Author: Dave Andreoli <d...@gurumeditation.it>
Date:   Mon May 4 03:19:00 2015 +0200

    Add the data property for SlideshowItem
    
    To be consistent with Genlist/grid behaviour
---
 efl/elementary/slideshow.pyx | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/efl/elementary/slideshow.pyx b/efl/elementary/slideshow.pyx
index e1f9597..73a313d 100644
--- a/efl/elementary/slideshow.pyx
+++ b/efl/elementary/slideshow.pyx
@@ -284,6 +284,22 @@ cdef class SlideshowItem(ObjectItem):
                 type(self.item_class).__name__,
                 self.item_data)
 
+    property data:
+        """ The data (model) associated with this item.
+
+        This is the data that has been passed to the add/sorted_insert
+        functions, and the same that you get in the ItemClass get and delete
+        functions.
+
+        .. versionadded:: 1.14
+
+        """
+        def __get__(self):
+            return self.item_data
+
+    def data_get(self):
+        return self.item_data
+
     def add_to(self, Slideshow slideshow not None):
         """Add (append) a new item in a given slideshow widget.
 

-- 


Reply via email to