lookatme.tui module¶
This module defines the text user interface (TUI) for lookatme
-
class
lookatme.tui.
MarkdownTui
(pres, palette, start_idx=0)¶ Bases:
urwid.container.Frame
-
keypress
(size, key)¶ Handle keypress events
-
prep_pres
(pres, start_idx=0)¶ Prepare the presentation for displaying/use
-
reload
()¶ Reload the input, keeping the current slide in focus
-
run
()¶
-
update
()¶
-
update_body
()¶ Render the provided slide body
-
update_creation
()¶ Update the author and date
-
update_slide_num
()¶ Update the slide number
-
update_title
()¶ Update the title
-
-
class
lookatme.tui.
SlideRenderer
(loop)¶ Bases:
threading.Thread
-
daemon
= True¶
-
flush_cache
()¶ Clea everything out of the queue and the cache.
-
get_slide
(slide_number)¶ Fetch the slide from the cache
-
queue_render
(slide)¶ Queue up a slide to be rendered.
-
render_slide
(slide, force=False)¶ Render a slide, blocking until the slide completes. If
force
is True, rerender the slide even if it is in the cache.
-
run
()¶ Run the main render thread
-
stop
()¶
-
-
lookatme.tui.
create_tui
(pres, start_slide=0)¶ Run the provided presentation
Parameters: start_slide (int) – 0-based slide index
-
lookatme.tui.
text
(style, data, align='left')¶