__init__.py 1.2 KB

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