Re: Embedded python adding variables linking to C++-Variables / callbacks

2006-12-07 Thread gagsl-py
On 7 dic, 11:33, "iwl" <[EMAIL PROTECTED]> wrote: > What I found out up to now is to create a class inherited from an > fitting type > and overwrite the __setitem__ and __getitem__ method but haven't test > this > yet, something like that: > > class test(int): > __setitem(self, value)__: C-Set-F

Re: Embedded python adding variables linking to C++-Variables / callbacks

2006-12-07 Thread iwl
[EMAIL PROTECTED] schrieb: > > Write some C functions -callable from Python- which will be used to get > and set the variable value. > >From inside Python, declare a property with getter and setter which > will call your C functions. > This works fine for object attributes. If you want to trap ref

Re: Embedded python adding variables linking to C++-Variables / callbacks

2006-12-07 Thread gagsl-py
iwl ha escrito: > I would like to add Variables to my embedded python which represents > variables from my > C++-Programm. > I found C-Api-funcs for adding my C-Funcs to python but none to add > variables. > I would like some C-Function is called when the added Python-varible is > set (LValue) and