Re: [pygtk] New signal

1999-10-26 Thread James Henstridge
You may consider it a dirty word, but multiple inheritance may be useful here. You may be able to use the Publisher class as a mix in class to get it's signal behaviour without having to change the rest of pygtk (which could potentially break a number of other programs). Something like this: cl

Re: [pygtk] New signal

1999-10-26 Thread Bernhard Herzog
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 wou

Re: [pygtk] New signal

1999-10-26 Thread Jozsa Kristof
On Tue, Oct 26, 1999 at 08:52:35AM +0800, James Henstridge wrote: > different from GTK+ signals). It may work or it may not. I don't think > gtk uses alarm(), so you could probably use it to perform actions at > certain intervals during long calculations. I've looked after it a bit: gtk.timeout

Re: [pygtk] New signal

1999-10-25 Thread James Henstridge
If you are inside the gtk main loop, timeouts should be getting serviced correctly. If you are not in the gtk main loop, then timeouts will not get serviced on time (they will be called next time you get into the main loop with a call to mainloop() or mainiteration()). I don't know about the SIG

Re: [pygtk] New signal

1999-10-25 Thread WroBELL
On Mon, 25 Oct 1999, WroBELL wrote: > On Mon, 25 Oct 1999, Bernhard Herzog wrote: > > > WroBELL <[EMAIL PROTECTED]> writes: > > > > > On Mon, 25 Oct 1999, James Henstridge wrote: > > > > > > > It is not currently possible to do this with pygtk. The GTK+ type system > > > > is one part of gtk

Re: [pygtk] New signal

1999-10-25 Thread Jozsa Kristof
On Mon, Oct 25, 1999 at 05:35:31PM +0200, WroBELL wrote: > On Mon, 25 Oct 1999, Bernhard Herzog wrote: > > If you already have Sketch, it's in Sketch/Base/connector.py. If there's > > enough interest, I can make it available separately and write up some > > documentation. > I think it would a gre

Re: [pygtk] New signal

1999-10-25 Thread WroBELL
On Mon, 25 Oct 1999, Bernhard Herzog wrote: > WroBELL <[EMAIL PROTECTED]> writes: > > > On Mon, 25 Oct 1999, James Henstridge wrote: > > > > > It is not currently possible to do this with pygtk. The GTK+ type system > > > is one part of gtk that is difficult wrap. What do you need the > > > f

Re: [pygtk] New signal

1999-10-25 Thread Bernhard Herzog
WroBELL <[EMAIL PROTECTED]> writes: > On Mon, 25 Oct 1999, James Henstridge wrote: > > > It is not currently possible to do this with pygtk. The GTK+ type system > > is one part of gtk that is difficult wrap. What do you need the > > functionality for? > I need it for dialog which should emi

Re: [pygtk] New signal

1999-10-25 Thread WroBELL
On Mon, 25 Oct 1999, James Henstridge wrote: > It is not currently possible to do this with pygtk. The GTK+ type system > is one part of gtk that is difficult wrap. What do you need the > functionality for? I need it for dialog which should emit "add_data" signal when "Add" button is pressed.

Re: [pygtk] New signal

1999-10-25 Thread James Henstridge
It is not currently possible to do this with pygtk. The GTK+ type system is one part of gtk that is difficult wrap. What do you need the functionality for? James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Mon, 25 Oct 1999, WroBELL wrote: > How can I add new signal

[pygtk] New signal

1999-10-25 Thread WroBELL
How can I add new signal to GtkObject? For example: - class MyObject(GtkObject): def __init__(self): self.new_signal_function("new_signal") x=MyObject() x.connect("new_signal", new_signal_callback) -- Is it possible with pygtk? WroBELL <[EMAIL P