Skip to content
Discussion options

You must be logged in to vote

If your widgets can be confident that self.app is of a type that has the methods you want to call, then you won't run into any problems. This does, however, mean your widgets won't be that portable; this may or may not be a concern.

My approach these days is to use the same data flow rules for anything involving the application class as with any other container. That's to say, ideally, I never have a widget call a method on self.app (other than those that are documented to be part of App) and instead send up messages.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by davep
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant