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

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

7 statements  

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""" 

9 

10from __future__ import annotations 

11 

12from .base import ( 

13 Box, 

14 Button, 

15 Checkbox, 

16 CheckboxList, 

17 Frame, 

18 HorizontalLine, 

19 Label, 

20 ProgressBar, 

21 RadioList, 

22 Shadow, 

23 TextArea, 

24 VerticalLine, 

25) 

26from .dialogs import Dialog 

27from .menus import MenuContainer, MenuItem 

28from .toolbars import ( 

29 ArgToolbar, 

30 CompletionsToolbar, 

31 FormattedTextToolbar, 

32 SearchToolbar, 

33 SystemToolbar, 

34 ValidationToolbar, 

35) 

36 

37__all__ = [ 

38 # Base. 

39 "TextArea", 

40 "Label", 

41 "Button", 

42 "Frame", 

43 "Shadow", 

44 "Box", 

45 "VerticalLine", 

46 "HorizontalLine", 

47 "CheckboxList", 

48 "RadioList", 

49 "Checkbox", 

50 "ProgressBar", 

51 # Toolbars. 

52 "ArgToolbar", 

53 "CompletionsToolbar", 

54 "FormattedTextToolbar", 

55 "SearchToolbar", 

56 "SystemToolbar", 

57 "ValidationToolbar", 

58 # Dialogs. 

59 "Dialog", 

60 # Menus. 

61 "MenuContainer", 

62 "MenuItem", 

63]