On Mon, 30 Oct 2000, Yasushi Shoji wrote:
> Hi James,
>
> Great work!
>
> At Tue, 31 Oct 2000 09:59:33 +0800 (WST),
> James Henstridge <[EMAIL PROTECTED]> wrote:
> >
> > You will need a fairly recent version of gtk+ and glib from CVS, as it
> > uses the GSignal code that Tim Janik checked in a week ago. I don't think
> > it will be too difficult to add support for creating new GObject
> > subclasses from python, and adding new signals to GObjects.
>
> does it mean we'd be able to create a subclass from, say, GtkLabel and
> add new signal to it?
Hopefully yes. It will probably look something like this:
class MyLabel(GtkLabel):
def __init__(self, whatever):
self.__init_from_typecode__()
gobject.derive(MyLabel)
# now add a signal:
gobject.signal_new(MyLabel, ...)
James.
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk