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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -