Skip to content

Reference

  • API: every function and class that import yugui as ui gives you (apps, widgets, events, subscriptions, tasks, undo history) and the test driver, with their signatures and options. It's generated from the docstrings, so it matches the code.

Some details are easier to find elsewhere:

  • Sizes, paddings, alignments and colours, which every widget takes in the same forms: the Layout section of the tutorial, and the types at the end of the API page.
  • Themes: ui.THEMES lists their names, from "Light" and "Dark" to "Tokyo Night".
  • Keys, for ui.on_key and ui.shortcuts: named keys are written as iced names them ("Enter", "Escape", "ArrowUp", "F5"), other keys as the character they type. Modifiers are shift, ctrl, alt, logo, and cmd, which means the Command key on macOS and Ctrl elsewhere.
  • What happens when your code raises: see How yugui works.