[pyclutter/wip/introspection] Add __iter__() to Clutter.Actor
- From: Bastian Winkler <bwinkler src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pyclutter/wip/introspection] Add __iter__() to Clutter.Actor
- Date: Wed, 18 Apr 2012 13:48:38 +0000 (UTC)
commit 33d93c6880b527ae606b21dc8ae18b188c1e498f
Author: Bastian Winkler <buz netbuz org>
Date: Tue Apr 17 13:15:15 2012 +0200
Add __iter__() to Clutter.Actor
introspection/Clutter.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/introspection/Clutter.py b/introspection/Clutter.py
index 37b6824..f77abe7 100644
--- a/introspection/Clutter.py
+++ b/introspection/Clutter.py
@@ -637,6 +637,10 @@ class Actor(Clutter.Actor):
if success:
return box
+ if clutter_version >= (1, 10, 0):
+ def __iter__(self):
+ return iter(self.get_children())
+
Actor = override(Actor)
__all__.append('Actor')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]