Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/prompt_toolkit/widgets/__init__.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.4.4, created at 2024-04-20 06:09 +0000

1""" 

2Collection of reusable components for building full screen applications. 

3These are higher level abstractions on top of the `prompt_toolkit.layout` 

4module. 

5 

6Most of these widgets implement the ``__pt_container__`` method, which makes it 

7possible to embed these in the layout like any other container. 

8""" 

9from __future__ import annotations 

10 

11from .base import ( 

12 Box, 

13 Button, 

14 Checkbox, 

15 CheckboxList, 

16 Frame, 

17 HorizontalLine, 

18 Label, 

19 ProgressBar, 

20 RadioList, 

21 Shadow, 

22 TextArea, 

23 VerticalLine, 

24) 

25from .dialogs import Dialog 

26from .menus import MenuContainer, MenuItem 

27from .toolbars import ( 

28 ArgToolbar, 

29 CompletionsToolbar, 

30 FormattedTextToolbar, 

31 SearchToolbar, 

32 SystemToolbar, 

33 ValidationToolbar, 

34) 

35 

36__all__ = [ 

37 # Base. 

38 "TextArea", 

39 "Label", 

40 "Button", 

41 "Frame", 

42 "Shadow", 

43 "Box", 

44 "VerticalLine", 

45 "HorizontalLine", 

46 "CheckboxList", 

47 "RadioList", 

48 "Checkbox", 

49 "ProgressBar", 

50 # Toolbars. 

51 "ArgToolbar", 

52 "CompletionsToolbar", 

53 "FormattedTextToolbar", 

54 "SearchToolbar", 

55 "SystemToolbar", 

56 "ValidationToolbar", 

57 # Dialogs. 

58 "Dialog", 

59 # Menus. 

60 "MenuContainer", 

61 "MenuItem", 

62]