Registering enum in GObject type system (Python please)

I’d like to emit a user-defined enum from a custom signal. I know it is possible to do so in C but I cannot work out how to do so in Python.

Thanks.

Can you show what you’ve tried so far, and any errors that resulted?

You can’t do that: Can't create GEnum in Python (#215) · Issues · GNOME / pygobject · GitLab

Thanks.

Is it possible to initialize any of these GObject’s and emit them instead? For example I’d like to emit a signal with an array of data.

An alternative appears to be to emit a Python object.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.