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
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
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