Commit Graph

22 Commits

Author SHA1 Message Date
Seth Hillbrand 9a8d1246cc We don't keep a CHANGELOG.TXT
Direct interested readers to AUTHORS.TXT instead.
2021-10-05 19:46:53 -07:00
luz paz 0446d35f0d Fix source comment/doc typos (follow-up)
Found via `codespell -q 3 -S *.po,./thirdparty -L aactual,acount,aline,alocation,alog,anormal,anumber,aother,apoints,aparent,aray,dout,einstance,modul,ot,overide,serie,te,,tesselate,tesselator,tht`
2021-07-13 10:48:17 +00:00
luz paz f968fc8719 Fix source comment / documentation typos 2021-06-09 19:32:58 +00:00
jean-pierre charras 524ca442f3 Old python scripts: fix issues due to code change, and make them Python3/3 compatible 2021-04-27 11:55:56 +02:00
jean-pierre charras 60719b66bb Update some python scripts to be compatible with python2/python3 and changes in Kicad code. 2021-04-27 07:40:34 +02:00
Mika Laitio d13fb85d7f python3 print fix to scripts examples
Print function needs to use brackets to be compatible
both with the python2 and python3.
Without this fix following error was generated
with flags
-DKICAD_SCRIPTING_MODULES=ON
-DKICAD_SCRIPTING_PYTHON3=ON

/usr/share/kicad/demos/python_scripts_examples/gen_gerber_and_drill_files_board.py", line 95
print 'plot %s' % pctl.GetPlotFileName()
^
SyntaxError: invalid syntax

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8303

Signed-off-by: Mika Laitio <lamikr@gmail.com>
2021-04-26 15:20:14 +00:00
Dominik Wernberger 28991ddf58 Rename D_PAD to PAD 2020-11-14 09:37:45 +00:00
Dominik Wernberger 54878b04a5 Rename MODULE to FOOTPRINT 2020-11-14 09:37:45 +00:00
Dominik Wernberger a4650e7269 Rename GetModules to GetFootprints 2020-11-14 09:37:45 +00:00
jean-pierre charras f6b4b66a86 Avoid include wx/wx.h in many files that do not actually use this include.
Including wx.h includes the full set of wxWidgets include files, that is not good,
and can create some conflicts with some Windows headers on msys2.
2020-10-18 18:21:34 +02:00
jean-pierre charras 3d28d0274b put a demo file to the right place 2018-08-01 16:44:18 +02:00
jean-pierre charras 602d9e1972 Fix a missing init in gerber plot script demo.
Fixes: lp:1759071
https://bugs.launchpad.net/kicad/+bug/1759071
2018-03-27 13:42:51 +02:00
jean-pierre charras e1fbe1cb3a update a python demo that wws not working with current pcbnew version. 2017-09-19 18:50:43 +02:00
jean-pierre charras a557838c61 Fix incorrect refresh of User Interface after running an action plugin, and add comments 2017-08-27 08:13:35 +02:00
Jean-Samuel Reynaud 13395d34dd Action plugins: handle undo/redo feature when running an action plugin. 2017-02-06 08:39:32 +01:00
Jean-Samuel Reynaud 75b08e49cf Add 2 python action plugins in demos 2017-01-31 18:38:03 +01:00
unknown 274e88d381 Fix Python demo script gen_gerber_and_drill_files_board.py to choose one or 2 drill files when calling SetOptions() if NPTH pads are used. 2015-12-09 12:56:18 +01:00
jean-pierre charras 8ff5bc6108 gen_gerber_and_drill_files_board.py script: fix incorrect output folder for drill files. 2015-10-26 19:55:37 +01:00
jean-pierre charras bb95fcccfc plotcontroller: add method to get the current plot full file name and the current plot folder full path from Python script.
gen_gerber_and_drill_files_board.py: 
 * fix to make it compatible with rev 6280.
 *  allow this script to create files in  the current plot folder defined from the board forder, no more only in current working directory.
2015-10-26 18:51:41 +01:00
unknown ad10218a58 Rename {Set,Get}GerberExtensions() to {Set,Get}GerberProtelExtensions() (better name) in public API. 2015-10-21 08:55:30 +02:00
jean-pierre charras 699c76ccea Rework on EXCELLON_WRITER class, to allow gerber and drill files creation from a python script.
added the example gen_gerber_and_drill_files_board.py in demos, which shows how to do that.
Fix a Printf format issue (shown in Debug mode) in Libedit (%d used for a size_t, changed in %zu)
2015-04-29 17:37:37 +02:00
jean-pierre charras 9da39717ae Add a python script example in demo folder to create various plot files from a board. Fix also some issues in plot controller helper class.
Important note: from a python script one cannot plot the palge layout, because the page layout template file is not stored in the board file, but it is part of the project.
Because when using a python script, the project is not loaded, the page layout template is not known.
Trying to plot it crashes the script.
2015-04-27 20:02:27 +02:00