New register() method in plugins, used by the loader to handle runtime plugin reloading
This commit is contained in:
parent
c867ed9de4
commit
a2bb144556
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
# register it into pcbnew
|
||||
touch_slider_wizard.register()
|
||||
|
||||
return touch_slider_wizard
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue