bus.add_match_string("type='signal'") bus.add_match_string("type='method_call'") bus.add_match_string("type='method_return'") bus.add_match_string("type='error'") def foo(): print "foo\n" bus.add_message_filter(foo)