python - Connecting signals in GTK+: anonymous way? -
after reading "using signals" wondering if possible connect signals "sinks" in "anonymous" way?
in order words, if example following (snippet reference above):
acar = car() acar.connect('engine-started', mycallback)
is possible connect mycallback
signal engine-started
sources in 1 go? along lines of:
gbus.connect('engine-started', mycallback)
of course gbus
here example.
yes, can use gobject.add_emission_hook (g_signal_add_emission_hook).
Comments
Post a Comment