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

Allow instances to set the bounds of their BoundedNumericProperty #371

Closed
mpad opened this issue Jan 17, 2012 · 0 comments
Closed

Allow instances to set the bounds of their BoundedNumericProperty #371

mpad opened this issue Jan 17, 2012 · 0 comments
Assignees

Comments

@mpad
Copy link

mpad commented Jan 17, 2012

When a class defines a BoundedNumericProperty like in the code below, the bounds are currently set for the whole class and all its instances.

class MyWidget(Widget):
    value = BoundedNumericProperty(0,min=-5,max=5)

A desirable feature would be to allow each instance to redefine the bounds independently.

@ghost ghost assigned tito Jan 19, 2012
@tito tito closed this as completed in c34313a Jan 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants