Re: [PyQt] Accessing global variables

2012-08-24 Thread Phil Thompson
On Fri, 24 Aug 2012 14:26:10 +0200, Marco Meier wrote: > Hi, > > i am trying to access an enum that is defined globally in a namespace. > Simply defining it in the sip file wraps the type correctly, but the > value is not the one in the c++ shared object. > > I tried to use %SetCode and %GetCode

[PyQt] Accessing global variables

2012-08-24 Thread Marco Meier
Hi, i am trying to access an enum that is defined globally in a namespace. Simply defining it in the sip file wraps the type correctly, but the value is not the one in the c++ shared object. I tried to use %SetCode and %GetCode with an integer to access the correct value. %GetCode works as intend