DesktopApp.add_pages#

DesktopApp.add_pages(*pages, do_copy=False, blueprint=None, endpoint=None)#

Adds pages to the app.

Parameters:
  • pages (list(Page)) – List of Page objects.

  • do_copy (bool, default = False) – If True, the Page will be copied before adding to the app.

  • blueprint (toui.structure.ToUIBlueprint, flask.Blueprint, default = None) – If a flask.Blueprint or a ToUIBlueprint was added, the Page view_func will be added to the blueprint instead of the Flask app.

  • endpointendpoint parameter in flask.Flask.route. If None, the endpoint will be set as the unique id of the Page. The unique id is obtained through the id() function and converted to a string.