From 38c8470cdcdb4b42014aab171a4f1aefcf7ed2ec Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 24 May 2017 21:34:56 +0200 Subject: [PATCH] add comments in pcbnew_scripting_helpers.h --- pcbnew/swig/pcbnew_scripting_helpers.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pcbnew/swig/pcbnew_scripting_helpers.h b/pcbnew/swig/pcbnew_scripting_helpers.h index d269c5a620..6f67bb0b80 100644 --- a/pcbnew/swig/pcbnew_scripting_helpers.h +++ b/pcbnew/swig/pcbnew_scripting_helpers.h @@ -37,11 +37,16 @@ void ScriptingSetPcbEditFrame( PCB_EDIT_FRAME* aPCBEdaFrame ); #endif +// For Python scripts: return the current board. BOARD* GetBoard(); BOARD* LoadBoard( wxString& aFileName, IO_MGR::PCB_FILE_T aFormat ); + +// Default LoadBoard() to load .kicad_pcb files:. BOARD* LoadBoard( wxString& aFileName ); +// Boards can be saved only as .kicad_pcb file format, +// so no option to choose the file format. bool SaveBoard( wxString& aFileName, BOARD* aBoard ); void Refresh();