some test kicad plugins

This commit is contained in:
2021-06-22 10:51:43 -06:00
parent 410b849986
commit 23adee0e72
13 changed files with 228 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import pcbnew
import os
class TestPlugin(pcbnew.ActionPlugin):
def defaults(self):
self.name = "TestPlugin"
self.category = "A descriptive category name"
self.description = "A description of the plugin and what it does"
# self.pcbnew_icon_support = hasattr(self, "show_toolbar_button")
# self.show_toolbar_button = True
# icon_dir = os.path.dirname(os.path.dirname(__file__))
# self.icon_file_name = os.path.join(icon_dir, 'icon.png')
def Run(self):
# The entry function of the plugin that is executed on user action
print("Hello World - testplugin")

View File

@@ -0,0 +1,3 @@
from .TestPlugin_action import TestPlugin
plugin = TestPlugin()
plugin.register()

Binary file not shown.

After

Width:  |  Height:  |  Size: 761 B

View File

@@ -0,0 +1 @@
from .TestPlugin import plugin