Repository navigation
API 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.
PickList, ListWindow, CallStackWindow, debug_css
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(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 ownEMPTYtranslates it here, in its own domain:return DOMAIN.gettext(self.EMPTY). -
show(lines: list[str], keep: int | None = None) -> None: Showlines;keepthe line to choose (by default the chosen one, when the count is the same). -
activate(index: int) -> None: Lineindexwas chosen (Enter, a double click); nothing by default.
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
def debug_css(name: str) -> strThe CSS of a debugger window named name (its class): the palette's debug roles.
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