[PyKDE] How can I use SIP to wrap STL class?
ejoy
ejoy at peoplemail.com.cn
Wed Apr 10 08:02:53 BST 2002
Hi all:
I've read sip tutorial on internet and I know how to wrap a int foo(float);
But I still have problem to wrap the following code snippet:
#include <string>
#include <vector>
using namespace std;
class A{
public:
void foo(const vector<string>& input,vector<string>& output);
};
I want to wrap it in this way:
python:
in = ['a','b','c']
out = []
A.foo(in,out)
and the out should look like:['c','b','a']
How can I do this using SIP.
BTW: the sip document link on google seems broken.Where can I found it?
--
Sincerely yours,
ejoy
More information about the PyQt
mailing list