API Reference#

Here you can find the classes you can use in this package.

Main classes#

toui.apps.Website

A class that creates a web application from HTML files.

toui.apps.DesktopApp

A class that creates a desktop application from HTML files.

toui.pages.Page

Creates an HTML page that can be used as a window or as a webpage.

toui.elements.Element

Creates an HTML element.

Other classes#

toui.elements.IFrameElement

An <iframe> element edited to fit the content within it.

toui._signals.File

Contains the information of an uploaded file and can be used to save the file contents.

toui.structure.ToUIBlueprint

A class that inherits flask.Blueprint.

toui.pages.RedirectingPage

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

Functions#

toui.apps.quick_website

Creates a web app and adds a single Page to it.

toui.apps.quick_desktop_app

Creates a desktop app and adds a single Page to it.

toui.apps.set_global_app

Allows the app object to be shared across Python modules.

toui.apps.get_global_app

Gets the shared app object.