pcbnew scripting: cleanup, renamed KICAD_SCRIPTING_EXPERIMENT to KICAD_SCRIPTING_WXPYTHON, now every flavour compiles
This commit is contained in:
@@ -12,8 +12,10 @@
|
||||
|
||||
#include <Python.h>
|
||||
#ifndef NO_WXPYTHON_EXTENSION_HEADERS
|
||||
#ifdef KICAD_SCRIPTING_WXPYTHON
|
||||
#include <wx/wxPython/wxPython.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
/* Function pcbnewInitPythonScripting
|
||||
@@ -23,4 +25,21 @@
|
||||
bool pcbnewInitPythonScripting();
|
||||
void pcbnewFinishPythonScripting();
|
||||
|
||||
|
||||
|
||||
#ifdef KICAD_SCRIPTING_WXPYTHON
|
||||
|
||||
void RedirectStdio();
|
||||
wxWindow* CreatePythonShellWindow(wxWindow* parent);
|
||||
|
||||
#define PY_BLOCK_THREADS(name) wxPyBlock_t name = wxPyBeginBlockThreads()
|
||||
#define PY_UNBLOCK_THREADS(name) wxPyEndBlockThreads(name)
|
||||
|
||||
#else
|
||||
|
||||
#define PY_BLOCK_THREADS(name)
|
||||
#define PY_UNBLOCK_THREADS(name)
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user