[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] global variable in a SIP-generated module
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2015-02-23 11:56:05
Message-ID: 694e219c5db289ec8ea8751e94231b90 () riverbankcomputing ! com
[Download RAW message or body]

On 15/02/2015 12:58 pm, Wilbert Berendsen wrote:
> Hi,
> 
> I have this small SIP file (included in a larger module).
> 
> QList<int> version_list;
> PyObject *version;
> 
> %ModuleCode
> QList<int> version_list = QList<int>() << 1 << 2 << 3;
> PyObject *version = Py_BuildValue("iii", 1, 2, 3);
> %End
> 
> 
> The `version_list` attribute is visible in the generated module (and
> returns [1, 2, 3]), but the `version` is not. How can I make that one
> visible too?

A bug - should be fixed (but not heavily tested) in current hg and 
tonight's snapshot.

Thanks,
Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic