Re: Usage of an GObject inout parameter in python



Hello,

2015-04-22 9:01 GMT+01:00 David Boesner <david boesner gmail com>:
Hi everyone,

I would like to know how to use an inout parameter, that is defined in an
GObject method, in python.
The problem, that I am facing is, that python array, which I am passing to
the GObject method is
not changed, even though @buffer is an inout paramter. Could anyone please
tell me, if I misunderstood
the concept of inout parameters or give me an example, how I can use inout
parameters in python?

An inout parameter is mapped to two parameters: one in and one out. So
the parameter you send isn't changed, but the new value is the return
value of the function.

HTH,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]