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
added on_resize method to widgets so their size can be changed after initialization #930
base: master
Are you sure you want to change the base?
added on_resize method to widgets so their size can be changed after initialization #930
Conversation
… movement outside of frame
Add width/height to widget + fixes / examples
Currently self.dispatch_event('on_resize', width, height) Which means that when called by application code, it may directly steer the flow of control to an application registered callback handler for the I hope this PR avoids introducing or repeating this kind of unexpected opportunity for confluence of application code. It's mildly related to #1116 in that the latter explains how That said, to counter my own, maybe people more immersed in design patterns for event driven applications find this type of confluence natural or beautiful; otherwise to the rest of us, it just entails more conditional logic in callbacks and a rather loopy analysis of the safety when callbacks interact. |
No description provided.