[pyclutter/wip/introspection] actor: add conversion from python types to gobject types
- From: Bastian Winkler <bwinkler src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pyclutter/wip/introspection] actor: add conversion from python types to gobject types
- Date: Tue, 6 Dec 2011 18:24:08 +0000 (UTC)
commit 1ae3cfda18e4b4db0bee3ec1c1377a1eb508f9c9
Author: Stefano Facchini <stefano facchini gmail com>
Date: Mon Dec 5 15:22:47 2011 +0100
actor: add conversion from python types to gobject types
Signed-off-by: Bastian Winkler <buz netbuz org>
introspection/Clutter.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/introspection/Clutter.py b/introspection/Clutter.py
index fb994a3..70e3b22 100644
--- a/introspection/Clutter.py
+++ b/introspection/Clutter.py
@@ -401,6 +401,8 @@ class Actor(Clutter.Actor):
'or {"property": value, "property", value}')
for prop, value in properties:
+ pspec = getattr(self.__class__.props, prop)
+ value = _gvalue_from_python(pspec.value_type, value)
if not isinstance(prop, str):
raise TypeError('A property must be a string, got %s' %
type(prop))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]