-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Popover is broken #104
Comments
I'm getting a different error in my actual app, trying to reproduce. |
Sorry, the above code is bogus. Will further search later. |
This is the actual traceback:
But I am not yet successful in creating a small reproducer. Although: now I see, the |
The intent of Maybe that code was never kosher, but it did work. Let me try to find what changed. |
Ok, the change was introduced in the autolayout PR: vanilla/Lib/vanilla/vanillaBase.py Line 357 in 9e8cb5f
Popover does implement from vanilla import Popover
p = Popover((100, 200))
p.getPosSize()
That should not be a problem, as I don't think Popover needs getPosSize() really. My code assigns a Popover instance to an attribute of a Group subclass, which is perhaps a little sneaky, as all I need is a reference to the popup, but now this is interfering with the magic vanilla setattr behavior. I can't really blame vanilla, so I'll just work around it in my code. |
I think you touch a number of edge cases with a Popover
|
It could be that that error was triggered by me (in my first bogus example) not calling Popover with the correct argument: like Window, it wants a (w, h) tuple, not a (x, y, w, h) tuple. Fix that and the |
you need to keep a reference somewhere of the NSPopover object, if not this pops up: |
maybe a Popover shouldn't by a subclass of a VanillaBaseObject but similar to a Window be a subclass of a NSObject with vanilla like attributes like getPosSize and others |
The text was updated successfully, but these errors were encountered: