[pygtk] gtk.Builder & inherited widgets
Alessandro Dentella
sandro at e-den.it
Wed Dec 15 00:41:47 WST 2010
Hi,
in the attached example I have a very simple xml definition (a button in a
Window).
The Button is not really a gtk.Button it's defined with its own signal:
class Test(gtk.Button):
__gtype_name__ = 'Test'
__gsignals__ = {
'my-signal' : (gobject.SIGNAL_RUN_LAST,
gobject.TYPE_NONE,
()
),
}
def __init__(self):
self.emit('my-signal')
A second Test is derived from this one. The example fails when using the
second example and works correctly with the first one.
What am I doing wong?
It seems there's no way to make it see the signal defined in the derived
Test2 class, but I don't see anything special. Even Test inheritates from
other widgets (gtk.Button).
Any hints?
thanks
sandro
*:-)
--
Sandro Dentella *:-)
http://www.reteisi.org Soluzioni libere per le scuole
http://sqlkit.argolinux.org SQLkit home page - PyGTK/python/sqlalchemy
-------------- parte successiva --------------
Un allegato non testuale è stato rimosso....
Nome: mytest.py
Tipo: text/x-python
Dimensione: 1939 bytes
Descrizione: non disponibile
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20101214/1434f695/attachment.py>
More information about the pygtk
mailing list