File size: 1,218 Bytes
c7e8396 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
"""
Collection of reusable components for building full screen applications.
These are higher level abstractions on top of the `prompt_toolkit.layout`
module.
Most of these widgets implement the ``__pt_container__`` method, which makes it
possible to embed these in the layout like any other container.
"""
from __future__ import annotations
from .base import (
Box,
Button,
Checkbox,
CheckboxList,
Frame,
HorizontalLine,
Label,
ProgressBar,
RadioList,
Shadow,
TextArea,
VerticalLine,
)
from .dialogs import Dialog
from .menus import MenuContainer, MenuItem
from .toolbars import (
ArgToolbar,
CompletionsToolbar,
FormattedTextToolbar,
SearchToolbar,
SystemToolbar,
ValidationToolbar,
)
__all__ = [
# Base.
"TextArea",
"Label",
"Button",
"Frame",
"Shadow",
"Box",
"VerticalLine",
"HorizontalLine",
"CheckboxList",
"RadioList",
"Checkbox",
"ProgressBar",
# Toolbars.
"ArgToolbar",
"CompletionsToolbar",
"FormattedTextToolbar",
"SearchToolbar",
"SystemToolbar",
"ValidationToolbar",
# Dialogs.
"Dialog",
# Menus.
"MenuContainer",
"MenuItem",
]
|