From f3d0485ff77bf61968000f8b0fa668c37584dfbf Mon Sep 17 00:00:00 2001 From: easyw Date: Sat, 2 Nov 2019 11:18:13 +0100 Subject: [PATCH] adding button & icon --- CircularZone/CircularZone.py | 9 +- CircularZone/round_keepout_area.png | Bin 0 -> 1439 bytes CircularZone/round_keepout_area.svg | 216 ++++++++++++++++++++++++++++ 3 files changed, 222 insertions(+), 3 deletions(-) create mode 100644 CircularZone/round_keepout_area.png create mode 100644 CircularZone/round_keepout_area.svg diff --git a/CircularZone/CircularZone.py b/CircularZone/CircularZone.py index 3741fa4..b7b9583 100644 --- a/CircularZone/CircularZone.py +++ b/CircularZone/CircularZone.py @@ -2,14 +2,17 @@ from math import * import pcbnew from .CircularZoneDlg import CircularZoneDlg import wx +import os class CircularZone(pcbnew.ActionPlugin): def defaults(self): - self.name = "Create a circular zone" - self.category = "Undefined" - self.description = "" + self.name = "Circular Zone\nKeepout Zone Generator" + self.category = "Modify PCB" + self.description = "Create a Circular Zone\nor a Circular Keepout Zone" + self.icon_file_name = os.path.join(os.path.dirname(__file__), "./round_keepout_area.png") + self.show_toolbar_button = True def build(self, center_x, center_y, radius, keepout, edge_count): sp = pcbnew.SHAPE_POLY_SET() diff --git a/CircularZone/round_keepout_area.png b/CircularZone/round_keepout_area.png new file mode 100644 index 0000000000000000000000000000000000000000..03abbcf695b8be70ccf88d7d94f266863396898c GIT binary patch literal 1439 zcmV;Q1z`G#P)FGFQelbph9cthsb z3g44EeW7qM<<1r}oV5X8#l;s)jA1;0&2lHFa>^#P_PNbj16W_eMzK@48z+TT!deVU z9>?D?4eKzV&+4gw6DtgTHc5KRy`z|el^DX$gw?`nh26LvgV>Gj_$0285H@3@TrqWp zxn4rJ=FW(Si4kjQlxBWy14idL-|bJcLkKqu*oa19Q_cfSK5W=P)97 zAQ1;@wPg{pHskFRGfo`OQhIcLv$?wsyjb!Zp;jh;h1{`rN$)9PM`fOp+b?(EA51&g z-F4p&*=4oTJgjiNM|W80!;^TDedjqOFm%k9->Tz5-P&nL>;RXB}uUjJIKY@)>3*w|;vDt{t(GyYg^eY8x<<)z_OgKSW&vou7ER3!#A+XCi})Z zJLit~CSw1@%FcuF!n4ihRuR8DS7tU>Zn46%GIy2M%Ui%O3v{@nk~AWE+Oj`U!4B5z z>n6e$G#XoTis0Yl_M*5{>ug=Fa12QZL{^^qjJc$eG^KQ=dblHERs{=gtn3B9SkP!} zt=_#9z+$`YpVAWaO`jHz13cjvJ`y735HV9q*Jcqj#<$tGpwakNkmMHQMNG$8)6B8K zsZ4GNkC#u}A$O##CiM&rZ5Hv{b0x;~;QB0Lb;iffgGId5m@(ttHmOIHZNURJw1%^@ zG^`VDmCVJ?D#$w-PD4YzhibK@DdMxyI%_AcV`C{jx~S3E6GKC3{1a8U3G*#xnAwnPXeqeT_O2C<*}C>6@HH!h4nJW zjroDFLvkfnJ2wv}g)iy#)MTNj{x99?Qo|m@M^K;A@7#I|_hXB^b*lV-z-nz**Yrh& tj|sCy`S+b1*Q(|<$&c`S`HKC|^&bU5{{1RU8e#wd002ovPDHLkV1h?7&OHDC literal 0 HcmV?d00001 diff --git a/CircularZone/round_keepout_area.svg b/CircularZone/round_keepout_area.svg new file mode 100644 index 0000000..30b4901 --- /dev/null +++ b/CircularZone/round_keepout_area.svg @@ -0,0 +1,216 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +