-
-
Notifications
You must be signed in to change notification settings - Fork 669
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
AttributeError: 'NoneType' object has no attribute '_impl' #760
Comments
Ok, after looking into the code https://github.com/beeware/toga/blob/v0.3.0.dev14/src/core/toga/app.py |
Thanks for the report! That's a good point - I can see how the difference between providing a startup() method as an argument, and overriding startup() on an instance is potentially confusing - definitely worth at least a clarification in the docs, if not a rethink of the naming of either the method or the argument. |
The solution here is much the same as the OP discovered. Startup needs to create a main window; your main window is created in the You've also got the button handler for the Enviar button pointing back to the same method where the button is defined, which... is going to lead to some interesting recursive behavior. On Toga's side, catching the "no main window" case would be a useful (and relatively straightforward) error to catch here. |
Thank you @freakboy3742 . I'm sorry for deletion of my post. I've deleted before refreshing the page and seeing your post. Thank you again. |
Looking at this issue, it seems
|
toga==0.3.0.dev14 on Windows10 gives me error in title.
Repro:
The text was updated successfully, but these errors were encountered: