KiCad PCB EDA Suite
Loading...
Searching...
No Matches
wx_python_helpers.cpp File Reference

Python wrapping helpers for wx structures/objects. More...

#include <Python.h>
#include <string_utils.h>
#include <wx/intl.h>
#include <wx/string.h>
#include <wx/arrstr.h>

Go to the source code of this file.

Macros

#define WX_DEFAULTENCODING_SIZE   64
 

Functions

PyObject * wxArrayString2PyList (const wxArrayString &lst)
 
wxString Py2wxString (PyObject *src)
 
PyObject * wx2PyString (const wxString &src)
 
void wxSetDefaultPyEncoding (const char *encoding)
 
const char * wxGetDefaultPyEncoding ()
 

Variables

static char wxPythonEncoding [WX_DEFAULTENCODING_SIZE] = "ascii"
 

Detailed Description

Python wrapping helpers for wx structures/objects.

Definition in file wx_python_helpers.cpp.

Macro Definition Documentation

◆ WX_DEFAULTENCODING_SIZE

#define WX_DEFAULTENCODING_SIZE   64

Definition at line 37 of file wx_python_helpers.cpp.

Function Documentation

◆ Py2wxString()

wxString Py2wxString ( PyObject *  src)

Definition at line 57 of file wx_python_helpers.cpp.

References From_UTF8(), and wxPythonEncoding.

◆ wx2PyString()

PyObject * wx2PyString ( const wxString &  src)

Definition at line 107 of file wx_python_helpers.cpp.

◆ wxArrayString2PyList()

PyObject * wxArrayString2PyList ( const wxArrayString &  lst)

Definition at line 42 of file wx_python_helpers.cpp.

◆ wxGetDefaultPyEncoding()

const char * wxGetDefaultPyEncoding ( )

Definition at line 120 of file wx_python_helpers.cpp.

References wxPythonEncoding.

◆ wxSetDefaultPyEncoding()

void wxSetDefaultPyEncoding ( const char *  encoding)

Definition at line 113 of file wx_python_helpers.cpp.

References WX_DEFAULTENCODING_SIZE, and wxPythonEncoding.

Variable Documentation

◆ wxPythonEncoding

char wxPythonEncoding[WX_DEFAULTENCODING_SIZE] = "ascii"
static