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

Multiple Scales / Choices #16

Open
DominiqueMakowski opened this issue Dec 12, 2016 · 1 comment
Open

Multiple Scales / Choices #16

DominiqueMakowski opened this issue Dec 12, 2016 · 1 comment

Comments

@DominiqueMakowski
Copy link
Member

One of the way to possibly display several scales and/or choices at the same time might be to create a class scale / choice. This will change their behavior to something like:

# Create a scale object
eval_mood = scale(title="how is my mood?")  # Create a scale object
eval_mood.display()  # Display a simple scale

# Same for choice
choice_gender = choice(["Male", "Female"], title="Gender?")
choice_gender.display()

# To display both
multiple_display([eval_mood, choice_gender], y=[4, -2])

However, I'm worrying that it would get a bit more redundant / complicated / less straightforward to display simple scales / choices that it is now.

What do you think?

@DominiqueMakowski
Copy link
Member Author

One way to avoid major breaking changes is that the display method of the classes would take the same parameters than the init (basically all the current parameters from scale/choice). Additionaly, we would create a scale and a choice object at module import (as with the time object which is an instance of the Time class) .

Thus, these functions would remain one-liners in their regular use.

scale.display(title="blabla", anchors=["no", "yes"], ...)

The user would see it as a name change from scale() to scale.display()

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

1 participant