summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/properties.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/properties.py b/examples/properties.py
index f71ea83e..eebfb163 100644
--- a/examples/properties.py
+++ b/examples/properties.py
@@ -2,13 +2,13 @@ from gi.repository import GObject
class MyObject(GObject.GObject):
- foo = GObject.property(type=str, default='bar')
- boolprop = GObject.property(type=bool, default=False)
+ foo = GObject.Property(type=str, default='bar')
+ boolprop = GObject.Property(type=bool, default=False)
def __init__(self):
GObject.GObject.__init__(self)
- @GObject.property
+ @GObject.Property
def readonly(self):
return 'readonly'