📌 Description
Problem
Users encounter errors when trying to use global callbacks in the Gui constructor like:
Gui(pages=pages, on_change=handle_change).run()
TypeError: Gui.__init__() got an unexpected keyword argument 'on_change'
Similarly with the run method, except that does not raise an error which can be even more confusing to troubleshoot.
Suggested solutions
- Improve the docs to make it clearer that Taipy implicitly finds functions with those exact names, or can be explicitly assigned by
gui.on_change = handle_change
- Better error message when on_change, on_navigate, etc. are passed to the Gui constructor. E.g. "Did you mean to..."
- Warnings when passing global callback parameters to Gui.run. E.g. same "Did you mean to"
📜 Code of Conduct
✅ Acceptance Criteria
📌 Description
Problem
Users encounter errors when trying to use global callbacks in the Gui constructor like:
Similarly with the run method, except that does not raise an error which can be even more confusing to troubleshoot.
Suggested solutions
gui.on_change = handle_change📜 Code of Conduct
✅ Acceptance Criteria