schriftgestalt / GlyphsSDK

Scripting SDK for Glyphs
Apache License 2.0
89 stars 37 forks source link

NSAffineTransform not available by default #59

Closed takaakifuji closed 2 years ago

takaakifuji commented 2 years ago

https://github.com/schriftgestalt/GlyphsSDK/blob/8883c464e1dd251c888ac5efb02330919c7a7b48/ObjectWrapper/GlyphsApp/__init__.py#L75 While mentioned in the documentation, the Pythonic wrapper for NSAffineTransform seems to remain unexported.

from GlyphsApp import NSAffineTransform

It becomes accessible if you explicitly import the class on 3.0.4 (3106) though.

schriftgestalt commented 2 years ago

I added some of AppKit to the glyphs wrapper for convenience. But I would not add more. And python needs a lot imports for all kind things. so you need to do:

from Foundation import NSAffineTransform