RedirectingPage#

class toui.pages.RedirectingPage(redirect_to, url, title=None)[source]#

Bases: Page

An empty page that redirects to another page when it is loaded.

Parameters:
  • redirect_to (str) – The URL of the page to redirect to.

  • url (str, optional) – The URL of the empty page.

  • title (str) – The title of the empty page.

  • html_file (str) – The path to the HTML file.

  • html_str (str) – A string containing HTML code.

  • url – If the page was used as a webpage, this will be the URL of the page.

  • title – In desktop app, this parameter will be the title of the window.