Commit 1cf52baa authored by Miguel Angel Ajo's avatar Miguel Angel Ajo

New register() method in plugins, used by the loader to handle runtime plugin reloading

parent 31a693cb
......@@ -110,9 +110,13 @@ class FPCFootprintWizard(FootprintWizardPlugin):
module.SetLibRef("FPC"+str(pads))
def register():
# create our footprint wizard
fpc_wizard = FPCFootprintWizard()
# register it into pcbnew
fpc_wizard.register()
return fpc_wizard
# create our footprint wizard
fpc_wizard = FPCFootprintWizard()
# register it into pcbnew
fpc_wizard.register()
......@@ -179,13 +179,15 @@ class TouchSliderWizard(FootprintWizardPlugin):
pos+=wxPoint(0,band_width)
module.SetLibRef("S"+str(steps))
def register():
# create our footprint wizard
touch_slider_wizard = TouchSliderWizard()
module.SetLibRef("S"+str(steps))
# register it into pcbnew
touch_slider_wizard.register()
return touch_slider_wizard
# create our footprint wizard
touch_slider_wizard = TouchSliderWizard()
# register it into pcbnew
touch_slider_wizard.register()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment