Skip to content

API turboframe.ui.debugwindows

rafageist edited this page Dec 4, 2026 · 4 revisions

turboframe.ui.debugwindows

Source: turboframe/ui/debugwindows.py. Generated from the code of TurboFrame 0.3.0 by tools/wiki_api.py.

Turbo Pascal's debugger windows: cyan, black text, the chosen line white on red.

ListWindow is a window of lines a debugger shows (watches, variables, breakpoints): filtered by typing, Enter (or a double click) calls its activate(index). CallStackWindow is the call stack, innermost call first: Enter asks the application's select_frame(index). The colours are the palette's debug-* roles (debug_css(name) for a window of the application's own).

What a debugger is (DAP, DBGp, a tracer) and what its windows hold stay in the application.

Contents

PickList, ListWindow, CallStackWindow, debug_css

class PickList

class PickList(WheelList, FilteredList, ListBox)

A debugger window's lines: Enter or a double click activates one in its window.

  • select_item(item: int) -> None

class ListWindow

class ListWindow(TVWindow)
ListWindow(title: str, number: int = 0)

Lines in a debugger window; show(lines) keeps the chosen line when only the lines' text changes. EMPTY is what an empty window says (through empty_text()), HINT what the status line says while it is active.

  • empty_text() -> str: What an empty window says: EMPTY, looked up in TurboFrame's catalogue (where an application's text is not, so it is shown as it is). An application's subclass with its own EMPTY translates it here, in its own domain: return DOMAIN.gettext(self.EMPTY).
  • show(lines: list[str], keep: int | None = None) -> None: Show lines; keep the line to choose (by default the chosen one, when the count is the same).
  • activate(index: int) -> None: Line index was chosen (Enter, a double click); nothing by default.

class CallStackWindow

class CallStackWindow(ListWindow)
CallStackWindow(number: int = 0)

Where the program is: the innermost call first. Enter shows a frame: the application's select_frame(index) (a coroutine), run as a worker in GROUP.

  • activate(index: int) -> None

debug_css

def debug_css(name: str) -> str

The CSS of a debugger window named name (its class): the palette's debug roles.

Clone this wiki locally