-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add EnableCanvas example #63
Conversation
initial_size = (600, 400) | ||
Container: | ||
EnableCanvas: ecanvas: | ||
component = main.model.plot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend <<
here even though plot
never changes. If anybody copies this code and tries to do something more complicated, they'll likely run into a problem down the line.
There's a little bit of |
Done |
|
||
class Model(HasStrictTraits): | ||
|
||
plot = Instance(Plot, ()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since a default method is already provided there is no reason for the ()
in the signature of Instance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
👍 @jminardi, good to see you again |
Thanks @itziakos, I missed your code reviews. |
This PR brings in a simple
EnableCanvas
example.