Fix compil issue I created in rev 5242 when KICAD_SCRIPTING_WXPYTHON is ON
This commit is contained in:
parent
4fd2a4da94
commit
db31daffe4
|
@ -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:
|
||||||
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:
|
||||||
|
|
||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
// DECLARE_EVENT_TABLE()
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // PYTHON_CONSOLE_FRAME_H_
|
#endif // PYTHON_CONSOLE_FRAME_H_
|
||||||
|
|
Loading…
Reference in New Issue