You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 objecteval_mood=scale(title="how is my mood?") # Create a scale objecteval_mood.display() # Display a simple scale# Same for choicechoice_gender=choice(["Male", "Female"], title="Gender?")
choice_gender.display()
# To display bothmultiple_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?
The text was updated successfully, but these errors were encountered:
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.
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: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?
The text was updated successfully, but these errors were encountered: