Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using the GIO high level DBus API - DBusProxy object. I'd like to emit a signal on this object (faking a signal coming from a remote interface).

I do something like this:

proxy.emit('g-signal', sender_name, signal, params)

The signal is emitted and then caught - the sender name and signal parameters are OK, however params is always None in the signal handler, no matter what I put there (I tried GLib.Variant types and also Python types). The signals received normally do have the params value defined.

What is the issue? How do I set params in the emit functions?

share|improve this question

closed as off-topic by muru, Charles Green, Jan, Eric Carvalho, Afshin Hamedi Nov 6 '14 at 11:17

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – muru, Charles Green, Jan, Eric Carvalho, Afshin Hamedi
If this question can be reworded to fit the rules in the help center, please edit the question.

This is a programming question. You'll probably get better answers from a programmer community in Stack Overflow. – Flimm Jan 4 '13 at 14:15

Browse other questions tagged or ask your own question.