Re: [pygtk] creating signals outside __init__()?

2004-08-02 Thread Skip Montanaro
Gustavo> The code above should work (at least used to work for me), Gustavo> except that you need to call gobject.type_register(SomeClass) Gustavo> right after the class definition. Thanks, I'll give that a whirl. Skip ___ pygtk mailing lis

Re: [pygtk] creating signals outside __init__()?

2004-08-02 Thread Gustavo J. A. M. Carneiro
A Seg, 2004-08-02 às 17:26, Skip Montanaro escreveu: > Code that predates my presence on the current project I work on is littered > with stuff like this: > > class SomeClass(gobject.GObject): > my_signal = -1 > > def __init__(self, underlying_symbol): > if SomeCla

[pygtk] creating signals outside __init__()?

2004-08-02 Thread Skip Montanaro
Code that predates my presence on the current project I work on is littered with stuff like this: class SomeClass(gobject.GObject): my_signal = -1 def __init__(self, underlying_symbol): if SomeClass.my_signal < 0: SomeClass.my_signal = gobject.sign