Closed justinpenner closed 4 months ago
I just discovered that this problem is unique to pyobjc 10.3. If I downgrade to pyobjc 10.2 it resolves this issue and my test window opens:
Additionally, pyobjc 10.3 breaks vanilla when I use it in a Glyphs plugin (running vanilla 0.5.0), with the following errors:
I'm nowhere near able to wrap my head around pyobjc yet, but I suspect the problem could be related to this change from the 10.3 release notes:
__new__
) will not call __init__
even if one is defined.Your suspicion could be right, it may be this: https://github.com/ronaldoussoren/pyobjc/issues/610
Yes, it is, vanilla.Window uses that exact pattern with __new__
and __init__
.
This is fixed as of pyobjc 10.3.1.
I can't get a simple test from the command line to work, at all.
Output:
So, it seems like when I instantiate
vanilla.Window
, its__init__
method isn't getting called for some reason.