Add Python Tool to pcbnew

This commit is contained in:
Seth Hillbrand
2021-06-01 20:18:24 +00:00
parent c7d188a8d0
commit bf1437899e
22 changed files with 277 additions and 185 deletions
+4 -8
View File
@@ -45,12 +45,10 @@
#include <wx/string.h>
#include <wx/arrstr.h>
class KIWAY;
class SCRIPTING
{
public:
SCRIPTING( KIWAY* aKiway );
SCRIPTING();
~SCRIPTING();
/// We do not allow secondary creation of the scripting system
@@ -59,13 +57,14 @@ public:
static bool IsWxAvailable();
static wxString PyScriptingPath( bool aUserPath = false );
static wxString PyPluginsPath( bool aUserPath = false );
private:
bool scriptingSetup();
PyThreadState* m_python_thread_state;
KIWAY* aKiway;
};
/**
@@ -93,7 +92,4 @@ wxString PyStringToWx( PyObject* str );
wxArrayString PyArrayStringToWx( PyObject* arr );
wxString PyErrStringWithTraceback();
wxString PyScriptingPath( bool aUserPath = false );
wxString PyPluginsPath( bool aUserPath = false );
#endif // __PYTHON_SCRIPTING_H