Commit db31daff authored by jean-pierre charras's avatar jean-pierre charras

Fix compil issue I created in rev 5242 when KICAD_SCRIPTING_WXPYTHON is ON

parent 4fd2a4da
...@@ -29,6 +29,9 @@ ...@@ -29,6 +29,9 @@
#ifndef PYTHON_CONSOLE_FRAME_H_ #ifndef PYTHON_CONSOLE_FRAME_H_
#define PYTHON_CONSOLE_FRAME_H_ #define PYTHON_CONSOLE_FRAME_H_
#if defined(KICAD_SCRIPTING) || defined(KICAD_SCRIPTING_WXPYTHON)
#include <python_scripting.h>
#endif
/** /**
...@@ -51,7 +54,7 @@ public: ...@@ -51,7 +54,7 @@ public:
wxBoxSizer* sizer = new wxBoxSizer( wxVERTICAL ); wxBoxSizer* sizer = new wxBoxSizer( wxVERTICAL );
#if defined(KICAD_SCRIPTING_WXPYTHON) #if defined(KICAD_SCRIPTING_WXPYTHON)
wxWindow * pythonPanel = CreatePythonShellWindow( pythonPanelFrame ); wxWindow * pythonPanel = CreatePythonShellWindow( this );
sizer->Add( pythonPanel, 1, wxEXPAND | wxALL, 5 ); sizer->Add( pythonPanel, 1, wxEXPAND | wxALL, 5 );
#endif #endif
SetSizer( sizer ); SetSizer( sizer );
...@@ -91,8 +94,6 @@ private: ...@@ -91,8 +94,6 @@ private:
event.Skip(); event.Skip();
} }
// DECLARE_EVENT_TABLE()
}; };
#endif // PYTHON_CONSOLE_FRAME_H_ #endif // PYTHON_CONSOLE_FRAME_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment