Browse Source

python wrap: fix undefined FILLED/SKETCH constants in pcbnew.py

Fixes #6070
https://gitlab.com/kicad/code/kicad/issues/6070
6.0.7
jean-pierre charras 5 years ago
parent
commit
b907f79485
  1. 2
      common/swig/kicad.i
  2. 4
      include/outline_mode.h

2
common/swig/kicad.i

@ -80,6 +80,7 @@ principle should be easily implemented by adapting the current STL containers.
// headers/imports that must be included in the _wrapper.cpp at top
%{
#include <outline_mode.h>
#include <macros.h>
#include <cstddef>
#include <eda_item.h>
@ -107,6 +108,7 @@ principle should be easily implemented by adapting the current STL containers.
%ignore GetNewConfig;
// header files that must be wrapped
%include <outline_mode.h>
%include macros.h
%include core/typeinfo.h
%include eda_item.h

4
include/outline_mode.h

@ -23,8 +23,8 @@
/* Options to draw items with thickness ( segments, arcs, circles, texts...) */
enum OUTLINE_MODE
{
SKETCH = 0, // sketch mode: draw segments outlines only
FILLED = 1 // normal mode: solid segments
SKETCH = 0, // sketch mode: draw segments outlines only
FILLED = 1 // normal mode: solid segments
};
#endif
Loading…
Cancel
Save