WroBELL <[EMAIL PROTECTED]> writes:
> On Mon, 25 Oct 1999, WroBELL wrote:
>
> > On Mon, 25 Oct 1999, Bernhard Herzog wrote:
> >
> > > FWIW, Sketch contains a pretty generic mechanism for this kind of thing.
> > > It's pure Python and completely toolkit/platform independent.
> > >
> > > You would simply derive your dialog class from the Publisher class.
> > > Publisher defines methods for subscribing and unsubscribing from
> > > messages, so somewhere else in your code you would have something like
[...]
> > >
> > > IMO, if you already use Python, it makes more sense to implement
> > > mechanisms like this in Python than going through GTK.
> > >
[...]
> > I think it would a great idea.
> Hmmm... Another idea... But maybe include it (Publisher class)
> into pygtk and then GtkObject could derive from Publisher?
Hmm. I'm not sure whether that would be a good idea. gtk and pygtk are
(just) toolkits, whereas Sketch's signal mechanism tends more towards an
application framework, so I think it complements pygtk but perhaps
shouldn't be an integral part of it.
In Sketch at least, I use it more for internal communication between
e.g. the document and its views to update the views when the document
changes, and rarely directly with GTK widgets.
--
Bernhard Herzog | Sketch, a drawing program for Unix
[EMAIL PROTECTED] | http://www.online.de/home/sketch/
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]