diff options
author | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2005-05-22 22:38:55 +0000 |
---|---|---|
committer | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2005-05-22 22:38:55 +0000 |
commit | f5f2b25bb1985f4e954e85579cb3868d9c64790d (patch) | |
tree | 6636649205c11b431fda98a115349a1335dfe3ad /examples/gobject | |
parent | 987f28715cb67f4e5e0ad17bbae6cf191c70ce4f (diff) | |
download | pygtk-f5f2b25bb1985f4e954e85579cb3868d9c64790d.tar.gz |
Bug 128765: GObject metaclass
Diffstat (limited to 'examples/gobject')
-rw-r--r-- | examples/gobject/signal.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/gobject/signal.py b/examples/gobject/signal.py index 3d72e757..3ac4235a 100644 --- a/examples/gobject/signal.py +++ b/examples/gobject/signal.py @@ -1,3 +1,4 @@ +import pygtk; pygtk.require("2.0") import gobject class C(gobject.GObject): @@ -9,15 +10,12 @@ class C(gobject.GObject): self.__gobject_init__() # default constructor using our new GType def do_my_signal(self, arg): print "C: class closure for `my_signal' called with argument", arg -gobject.type_register(C) class D(C): def do_my_signal(self, arg): print "D: class closure for `my_signal' called. Chaining up to C" C.do_my_signal(self, arg) -gobject.type_register(D) - def my_signal_handler(object, arg, *extra): print "handler for `my_signal' called with argument", arg, \ "and extra args", extra |