Evas.SmartObject: Add smart_get, commented out parent getter
Need to test if we can use Eo parent_get to do the same thing.
This commit is contained in:
parent
c1e51903fe
commit
f3a5b44151
|
@ -589,6 +589,13 @@ cdef class SmartObject(Object):
|
|||
def __iter__(self):
|
||||
return SmartObjectIterator(self)
|
||||
|
||||
# property parent:
|
||||
# def __get__(self):
|
||||
# return object_from_instance(evas_object_parent_get(self.obj))
|
||||
|
||||
# def parent_get(self):
|
||||
# return object_from_instance(evas_object_parent_get(self.obj))
|
||||
|
||||
def member_add(self, Object child):
|
||||
"""member_add(Object child)
|
||||
|
||||
|
@ -640,6 +647,9 @@ cdef class SmartObject(Object):
|
|||
def __get__(self):
|
||||
return <Smart>evas_smart_data_get(evas_object_smart_smart_get(self.obj))
|
||||
|
||||
def smart_get(self):
|
||||
return <Smart>evas_smart_data_get(evas_object_smart_smart_get(self.obj))
|
||||
|
||||
def callback_add(self, char *event, func, *args, **kargs):
|
||||
"""Add a callback for the smart event specified by event.
|
||||
|
||||
|
|
Loading…
Reference in New Issue