This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pcbnew | |
import re | |
def _get_selected_modules(): | |
modules = pcbnew.GetBoard().GetModules() | |
return filter(lambda m: m.IsSelected(), modules) | |
def _replace_leading_number(target, new): | |
match = re.search(r'[0-9]', target) | |
idx = match.start() |
OlderNewer