Hello!

I have tried to create private signal for my class.
Now it looks like:

-- - - - -- - - - - - - - - - - - - - - - -- 
import gtk, gobject

class A (gtk.Window, gobject.GObject):
    def __init__ (self):
        gobject.GObject.__init__ (self)
        gtk.Window.__init__ (self)

gobject.signal_new ("no_undo", A,
                    gobject.SIGNAL_RUN_FIRST,
                    gobject.TYPE_NONE,
                    ())

inst = A()

print gobject.signal_list_names (inst)
print gobject.signal_list_names (gtk.Window)
- - - -- - - - - - - - - - - - - - - - - - -  -
I got this as result:

('no-undo', 'set-focus', 'frame-event', 'activate-focus', 'activate-default', 
'move-focus', 'keys-changed')
('no-undo', 'set-focus', 'frame-event', 'activate-focus', 'activate-default', 
'move-focus', 'keys-changed')

Is there way to create 'no-undo' signal for the A class only (not for Window)?

-- 
... Evgeny ... [AlsaPlayer: Nothing]
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to