summaryrefslogtreecommitdiff
path: root/plugin/mesh_plugin.py
diff options
context:
space:
mode:
authorjaseg <git-bigdata-wsl-arch@jaseg.de>2020-08-13 12:41:45 +0200
committerjaseg <git-bigdata-wsl-arch@jaseg.de>2020-08-13 12:41:45 +0200
commita21f9d909c64dcdbc093abf7211ac61d3614cfc0 (patch)
tree5402bcdfdbcb9b788d5cad5c16d05c0408a5f19b /plugin/mesh_plugin.py
downloadkimesh-a21f9d909c64dcdbc093abf7211ac61d3614cfc0.tar.gz
kimesh-a21f9d909c64dcdbc093abf7211ac61d3614cfc0.tar.bz2
kimesh-a21f9d909c64dcdbc093abf7211ac61d3614cfc0.zip
making progress
Diffstat (limited to 'plugin/mesh_plugin.py')
-rw-r--r--plugin/mesh_plugin.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/plugin/mesh_plugin.py b/plugin/mesh_plugin.py
new file mode 100644
index 0000000..1b302b4
--- /dev/null
+++ b/plugin/mesh_plugin.py
@@ -0,0 +1,17 @@
+import os.path
+
+import pcbnew
+
+from .mesh_dialog import show_dialog
+
+class MeshPlugin(pcbnew.ActionPlugin):
+ def defaults(self):
+ self.name = 'Mesh generator'
+ self.category = 'Modify PCB'
+ self.description = 'Creates security mesh traces on a PCB'
+ self.icon_file_name = os.path.join(os.path.dirname(__file__), 'mesh_plugin_icon.png')
+ self.show_toolbar_button = True
+
+ def Run(self):
+ import pcbnew
+ show_dialog(pcbnew.GetBoard())