summaryrefslogtreecommitdiffstats
path: root/tests/testmodule.py
diff options
context:
space:
mode:
authorGustavo J. A. M. Carneiro <gjc@src.gnome.org>2005-07-09 18:25:32 +0000
committerGustavo J. A. M. Carneiro <gjc@src.gnome.org>2005-07-09 18:25:32 +0000
commit83a43997b2136c6f5337219ddfe6aa6829d66fae (patch)
treee31a18b2a0f0fcc7cb55849c88c2afa12aa85d3d /tests/testmodule.py
parent49eabd6c5ab0b3c849bd03bd2149b47e50f19aee (diff)
downloadpygobject-83a43997b2136c6f5337219ddfe6aa6829d66fae.tar.gz
pygobject-83a43997b2136c6f5337219ddfe6aa6829d66fae.tar.xz
pygobject-83a43997b2136c6f5337219ddfe6aa6829d66fae.zip
Bug 161177: Allow creation of python classes from g_object_new
Diffstat (limited to 'tests/testmodule.py')
-rw-r--r--tests/testmodule.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/testmodule.py b/tests/testmodule.py
new file mode 100644
index 0000000..8761ecf
--- /dev/null
+++ b/tests/testmodule.py
@@ -0,0 +1,9 @@
+import gobject
+import gtk
+
+class PyLabel(gtk.Label):
+ __gtype_name__ = 'PyLabel'
+
+ def __init__(self):
+ gtk.Label.__init__(self, "hello")
+