Relative Content

Tag Archive for pythongimppyobjectparamspec

How to create GObject.ParamSpecString in python? The object returned by GObject.param_spec_string() is rejected as a gobject.GParamSpec

I need to pass a GObject.ParamSpecString to a function in a 3rd party API (Gimp 3.0). The docs on https://lazka.github.io/pgi-docs/#GObject-2.0/functions.html#GObject.param_spec_string say that GObject.param_spec_string(name, nick, blurb, default_value, flags) “Creates a new GObject.ParamSpecString instance.” But when I use the object returned from param_spec_string(), the api complains TypeError: argument pspec: Expected GObject.ParamSpec, but got gobject.GParamSpec