Repository navigation
API turboframe.ui.windows
Source: turboframe/ui/windows.py. Generated from the code of TurboFrame 0.3.0 by tools/wiki_api.py.
Turbo Vision windows: the frame with the window number and the * 12:5 indicator, the scroll bars drawn on the border of the active window, inner rules, and a list of places in files (Find in files).
RuleFrame, IndicatorFrame, Rule, VRule, HRule, WheelList, PassiveScrollBar, FrameScrollBar, HBAR_AFTER_INDICATOR, TVWindow, MessageItem, MessageList, LocationsWindow
class RuleFrame(Frame)A frame that joins the inner rules of its window (VRule / HRule) in Ts.
class IndicatorFrame(RuleFrame)
IndicatorFrame(*args, number: int = 0, **kwargs)Frame with the window number on the top border and a Borland-style * 12:5 indicator (modified flag, line:column) on the bottom border.
set_indicator(text: str) -> None
class Rule(Widget)An inner dividing line of a window, drawn like its frame (single line).
Where a rule meets the frame, the frame draws the T (see IndicatorFrame); where an HRule meets a VRule, the VRule draws it.
class VRule(Rule)class HRule(Rule)class WheelListThe mouse wheel on a Turbo Vision list (a ListViewer, which draws its own rows and is not one of Textual's scrolling views): a notch moves the bar three rows, as the list's scroll bar moves it.
class PassiveScrollBar(ScrollBar)
PassiveScrollBar(horizontal: bool = False, **kwargs)textual-vision's TScrollBar (▲ ▒ ■ ▼, ◄ ►) that never takes the focus: a click on it scrolls its view and leaves the focus where it was.
tv_select_self() -> None
class FrameScrollBar(PassiveScrollBar)
FrameScrollBar(horizontal: bool = False)Turbo Vision's standard scroll bar: drawn over the window's border.
As TWindow::standardScrollBar does, the vertical bar takes the right border and the horizontal one the bottom border (after the indicator, up to the resize corner), so the text keeps the column and the row a bar inside the window would take. Only the active window shows them, and only on an axis there is something to scroll. The bar is textual-vision's port of TScrollBar (▲ ▒ ■ ▼, ◄ ►): arrows a line, the track a page, the ■ dragged.
get_component_rich_style(*names: str, partial: bool = False) -> Style-
sync(max_val: int, page: int, value: int) -> None: The view's state, without scrolling it back. set_params(min_val: int, max_val: int, page_step: int = 1, arrow_step: int = 1) -> Noneupdate_display() -> Nonescroll_to_value(value: int) -> None
18
class TVWindow(Window)
TVWindow(title: str = '', *, number: int = 0, **kwargs)Window whose frame is an IndicatorFrame and whose content is composed.
Its scrolling view (the largest one) gets the standard scroll bars on the border where the view reaches it; the view's own bars go away there.
-
closing(property): Being taken off (Textual marks it and all it holds before its children go) or gone: work that ends then (a check with Div, a theme change) has nothing left to paint. -
scroll_view() -> Widget | None: The view the border's bars scroll: the largest scrolling one. -
update_scroll_bars() -> None: Bind, place and show the bars (after a layout change, or the window's activation). sync_scroll_bars() -> None
class MessageItem
MessageItem(text: str, path: Path | None = None, start: int | None = None, end: int | None = None)One line of the Messages window; with a location it jumps to the editor.
class MessageList(WheelList, FilteredList, ListBox)select_item(item: int) -> None
class LocationsWindow(TVWindow)
LocationsWindow(title: str, number: int = 0)A list of lines, each one maybe a place in a file: Enter (or a double click) on a located line jumps to it in the editor.
show(items: list[MessageItem]) -> Noneactivate(index: int) -> None
TurboFrame · part of Divengine · GPL-3.0-or-later · report an issue
Tutorial
Examples
The desktop
- The Desktop
- Application Mixins
- Windows and Lists
- Dialogs
- Histories
- Progress
- Themes and Colors
- Glyphs
- Settings and Recent Files
- Command Palette
Editing
Tasks
Languages
Running
Reference
Links