summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/properties.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/properties.py b/examples/properties.py
index 465b3c3c..4c8a20c0 100644
--- a/examples/properties.py
+++ b/examples/properties.py
@@ -15,18 +15,18 @@ class MyObject(GObject.GObject):
GObject.type_register(MyObject)
-print "MyObject properties: ", list(MyObject.props)
+print("MyObject properties: ", list(MyObject.props))
obj = MyObject()
-print "obj.foo ==", obj.foo
+print("obj.foo ==", obj.foo)
obj.foo = 'spam'
-print "obj.foo = spam"
+print("obj.foo = spam")
-print "obj.foo == ", obj.foo
+print("obj.foo == ", obj.foo)
-print "obj.boolprop == ", obj.boolprop
+print("obj.boolprop == ", obj.boolprop)
-print obj.readonly
+print(obj.readonly)
obj.readonly = 'does-not-work'