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
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
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
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
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
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
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
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
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.
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
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
11 matches
Mail list logo