I am working on a Python extension to associate it with a C ++ application written using wxWidgets for a graphical interface. I use Cython and have a basic system (build tools, as well as a starter extension with relevant version information, etc.) that work with pleasure.
I’m only interested in the possibility of creating a backend (not a GUI), such as parsing and processing files. However, all classes, and not just graphical interfaces, are used wxStringfor string data, for example, in the following minimal example:
#include <wx/string.h>
class MyClass{
wxString name;
wxString get_name(){
return this->name;
}
};
My question is the best way to wrap such a class? Is there an easy way to interact between a Python string and an instance wxString? Or do I need to wrap a class wxString? Can I somehow bind the wxPython port to avoid re-creating the wheel?
Blair source
share