On Wednesday 11 January 2017 08:52:37 Martin Schreiber wrote:
>
> How must the LAYER_PAIR type parameter be defined in Python?
>
Similar problem with
"CreateDrillFile(EXCELLON_WRITER self, FILE * aFile) -> int".
How to define "FILE * aFile"?
"
[...]
f1 = file(aoutputfile,'w')
drlwriter.CreateDrillFile(f1)
f1.close()
[...]
"
returns:
"
Traceback (most recent call last):
File "<stdin>", line 4, in <module>
File "drillfile.py", line 33, in drillfile
drlwriter.CreateDrillFile(f1)
File "/usr/lib/python2.7/site-packages/pcbnew.py", line 10059, in
CreateDrillFile
return _pcbnew.EXCELLON_WRITER_CreateDrillFile(self, *args)
TypeError: in method 'EXCELLON_WRITER_CreateDrillFile', argument 2 of
type 'FILE *'
".
Martin
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kicad-developers
More help : https://help.launchpad.net/ListHelp