Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
1cf52baa
Commit
1cf52baa
authored
Mar 17, 2013
by
Miguel Angel Ajo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New register() method in plugins, used by the loader to handle runtime plugin reloading
parent
31a693cb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
85 additions
and
79 deletions
+85
-79
fpc_footprint_wizard.py
pcbnew/scripting/plugins/fpc_footprint_wizard.py
+30
-26
touch_slider_wizard.py
pcbnew/scripting/plugins/touch_slider_wizard.py
+55
-53
No files found.
pcbnew/scripting/plugins/fpc_footprint_wizard.py
View file @
1cf52baa
...
...
@@ -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
()
pcbnew/scripting/plugins/touch_slider_wizard.py
View file @
1cf52baa
...
...
@@ -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
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment