Skip to content
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

Merged
merged 4 commits into from
Jul 11, 2014
Merged

Add EnableCanvas example #63

merged 4 commits into from
Jul 11, 2014

Conversation

jminardi
Copy link
Contributor

@jminardi jminardi commented Jul 7, 2014

This PR brings in a simple EnableCanvas example.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 2271e12 on jminardi:master into d6fa242 on enthought:master.

initial_size = (600, 400)
Container:
EnableCanvas: ecanvas:
component = main.model.plot
Copy link
Member

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.

@jwiggins
Copy link
Member

jwiggins commented Jul 7, 2014

There's a little bit of flake8 noise in enable_canvas_view.py, but other than that this LGTM.

@jminardi
Copy link
Contributor Author

jminardi commented Jul 7, 2014

Done


class Model(HasStrictTraits):

plot = Instance(Plot, ())
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 79123e1 on jminardi:master into d6fa242 on enthought:master.

@itziakos
Copy link
Member

itziakos commented Jul 8, 2014

👍 @jminardi, good to see you again

@jminardi
Copy link
Contributor Author

jminardi commented Jul 8, 2014

Thanks @itziakos, I missed your code reviews.

itziakos added a commit that referenced this pull request Jul 11, 2014
Add EnableCanvas example
@itziakos itziakos merged commit a08930f into enthought:master Jul 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants