Fix some issues related to python scripts:

- make PadArray.py compatible python2/3
- fix a wxWidgets warning in pcbnew_scripting_helpers.cpp shown in some cases
This commit is contained in:
jean-pierre charras
2021-04-28 14:02:47 +02:00
parent 78b555afa2
commit 4d9829ec8b
2 changed files with 11 additions and 1 deletions
+5 -1
View File
@@ -212,7 +212,11 @@ class PadGridArray(PadArray):
@param py: pitch in y-direction
@param centre: array centre point
"""
super(PadGridArray, self).__init__(pad)
try:
super().__init__(pad)
except TypeError:
super(PadGridArray, self).__init__(pad)
self.nx = int(nx)
self.ny = int(ny)