D.A.B.Tv0.0.33 Tutorial API DABT Tools ↗ GitHub ↗

tui.page.reset

tui.page.reset [PAGE]

Forgets the stored state of a page and puts the current page back to its first-build state.

Parameters

  • PAGE: optional page basename; default the current page. Another page only loses its stored state.

Notes

  • Every kept widget and pane returns to the value, selection, scroll and collapsed state it had when the page was first built; every resized split returns to its weights before the first resize. Then the page is laid out again, on_resize callbacks run and a repaint is requested.
  • Bound to alt+shift+r (tui.action.page_reset).

See also: tui.page.reset_field, tui.page.reset_all, tui.page.resettable