Add GetCurrentSelection() python scripting helper

qu1ck requested to merge qu1ck/kicad:swigselection into master

All the plugins currently iterate over all pcb objects when they need to get selected ones. It's tedious to also recurse into footprint sub objects.

This adds a GetCurrentSelection() to the swig wrapper. It uses already existing pcbnew frame method and just converts it to a type that swig can map properly.

Also fixes a bug in GetShapeStr() for shapes.

Edited by qu1ck

Merge request reports