DatalogiForAlle / AgentsPy

Agent-based simulation for education in Python
GNU General Public License v3.0
5 stars 0 forks source link

Suggestion: make "toggle" a parameter to add_button #103

Closed dybber closed 3 years ago

dybber commented 3 years ago

The interface for creating buttons:

epidemic_model.add_button("Step", step)
epidemic_model.add_toggle_button("Run", step)

Could perhaps be simplified to:

epidemic_model.add_button("Step", step)
epidemic_model.add_button("Run", step, toggle=True)