[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] global variable in a SIP-generated module
From: Wilbert Berendsen <wbsoft () xs4all ! nl>
Date: 2015-02-15 12:58:35
Message-ID: 20150215135835.74e16597 () sweelinck
[Download RAW message or body]
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?
Thanks for any help.
Wilbert
--
Wilbert Berendsen
(http://www.wilbertberendsen.nl)
_______________________________________________
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