mirror of
https://github.com/avitoras/telegram-tui.git
synced 2026-02-04 19:56:26 +00:00
200 lines
4.6 KiB
Python
200 lines
4.6 KiB
Python
from __future__ import annotations
|
|
|
|
from .attr_map import AttrMap, AttrMapError
|
|
from .attr_wrap import AttrWrap
|
|
from .bar_graph import BarGraph, BarGraphError, BarGraphMeta, GraphVScale, scale_bar_values
|
|
from .big_text import BigText
|
|
from .box_adapter import BoxAdapter, BoxAdapterError
|
|
from .columns import Columns, ColumnsError, ColumnsWarning
|
|
from .constants import (
|
|
RELATIVE_100,
|
|
Align,
|
|
Sizing,
|
|
VAlign,
|
|
WHSettings,
|
|
WrapMode,
|
|
normalize_align,
|
|
normalize_height,
|
|
normalize_valign,
|
|
normalize_width,
|
|
simplify_align,
|
|
simplify_height,
|
|
simplify_valign,
|
|
simplify_width,
|
|
)
|
|
from .container import WidgetContainerListContentsMixin, WidgetContainerMixin
|
|
from .divider import Divider
|
|
from .edit import Edit, EditError, IntEdit
|
|
from .filler import Filler, FillerError, calculate_top_bottom_filler
|
|
from .frame import Frame, FrameError
|
|
from .grid_flow import GridFlow, GridFlowError, GridFlowWarning
|
|
from .line_box import LineBox
|
|
from .listbox import ListBox, ListBoxError, ListWalker, ListWalkerError, SimpleFocusListWalker, SimpleListWalker
|
|
from .monitored_list import MonitoredFocusList, MonitoredList
|
|
from .overlay import Overlay, OverlayError, OverlayWarning
|
|
from .padding import Padding, PaddingError, PaddingWarning, calculate_left_right_padding
|
|
from .pile import Pile, PileError, PileWarning
|
|
from .popup import PopUpLauncher, PopUpTarget
|
|
from .progress_bar import ProgressBar
|
|
from .scrollable import Scrollable, ScrollableError, ScrollBar
|
|
from .solid_fill import SolidFill
|
|
from .text import Text, TextError
|
|
from .treetools import ParentNode, TreeListBox, TreeNode, TreeWalker, TreeWidget, TreeWidgetError
|
|
from .widget import (
|
|
BoxWidget,
|
|
FixedWidget,
|
|
FlowWidget,
|
|
Widget,
|
|
WidgetError,
|
|
WidgetMeta,
|
|
WidgetWarning,
|
|
WidgetWrap,
|
|
WidgetWrapError,
|
|
delegate_to_widget_mixin,
|
|
fixed_size,
|
|
nocache_widget_render,
|
|
nocache_widget_render_instance,
|
|
)
|
|
from .widget_decoration import WidgetDecoration, WidgetDisable, WidgetPlaceholder
|
|
from .wimp import Button, CheckBox, CheckBoxError, RadioButton, SelectableIcon
|
|
|
|
__all__ = (
|
|
"ANY",
|
|
"BOTTOM",
|
|
"BOX",
|
|
"CENTER",
|
|
"CLIP",
|
|
"ELLIPSIS",
|
|
"FIXED",
|
|
"FLOW",
|
|
"GIVEN",
|
|
"LEFT",
|
|
"MIDDLE",
|
|
"PACK",
|
|
"RELATIVE",
|
|
"RELATIVE_100",
|
|
"RIGHT",
|
|
"SPACE",
|
|
"TOP",
|
|
"WEIGHT",
|
|
"Align",
|
|
"AttrMap",
|
|
"AttrMapError",
|
|
"AttrWrap",
|
|
"BarGraph",
|
|
"BarGraphError",
|
|
"BarGraphMeta",
|
|
"BigText",
|
|
"BoxAdapter",
|
|
"BoxAdapterError",
|
|
"BoxWidget",
|
|
"Button",
|
|
"CheckBox",
|
|
"CheckBoxError",
|
|
"Columns",
|
|
"ColumnsError",
|
|
"ColumnsWarning",
|
|
"Divider",
|
|
"Edit",
|
|
"EditError",
|
|
"Filler",
|
|
"FillerError",
|
|
"FixedWidget",
|
|
"FlowWidget",
|
|
"Frame",
|
|
"FrameError",
|
|
"GraphVScale",
|
|
"GridFlow",
|
|
"GridFlowError",
|
|
"GridFlowWarning",
|
|
"IntEdit",
|
|
"LineBox",
|
|
"ListBox",
|
|
"ListBoxError",
|
|
"ListWalker",
|
|
"ListWalkerError",
|
|
"MonitoredFocusList",
|
|
"MonitoredList",
|
|
"Overlay",
|
|
"OverlayError",
|
|
"OverlayWarning",
|
|
"Padding",
|
|
"PaddingError",
|
|
"PaddingWarning",
|
|
"ParentNode",
|
|
"Pile",
|
|
"PileError",
|
|
"PileWarning",
|
|
"PopUpLauncher",
|
|
"PopUpTarget",
|
|
"ProgressBar",
|
|
"RadioButton",
|
|
"ScrollBar",
|
|
"Scrollable",
|
|
"ScrollableError",
|
|
"SelectableIcon",
|
|
"SimpleFocusListWalker",
|
|
"SimpleListWalker",
|
|
"Sizing",
|
|
"SolidFill",
|
|
"Text",
|
|
"TextError",
|
|
"TreeListBox",
|
|
"TreeNode",
|
|
"TreeWalker",
|
|
"TreeWidget",
|
|
"TreeWidgetError",
|
|
"VAlign",
|
|
"WHSettings",
|
|
"Widget",
|
|
"WidgetContainerListContentsMixin",
|
|
"WidgetContainerMixin",
|
|
"WidgetDecoration",
|
|
"WidgetDisable",
|
|
"WidgetError",
|
|
"WidgetMeta",
|
|
"WidgetPlaceholder",
|
|
"WidgetWarning",
|
|
"WidgetWrap",
|
|
"WidgetWrapError",
|
|
"WrapMode",
|
|
"calculate_left_right_padding",
|
|
"calculate_top_bottom_filler",
|
|
"delegate_to_widget_mixin",
|
|
"fixed_size",
|
|
"nocache_widget_render",
|
|
"nocache_widget_render_instance",
|
|
"normalize_align",
|
|
"normalize_height",
|
|
"normalize_valign",
|
|
"normalize_width",
|
|
"scale_bar_values",
|
|
"simplify_align",
|
|
"simplify_height",
|
|
"simplify_valign",
|
|
"simplify_width",
|
|
)
|
|
|
|
# Backward compatibility
|
|
FLOW = Sizing.FLOW
|
|
BOX = Sizing.BOX
|
|
FIXED = Sizing.FIXED
|
|
|
|
LEFT = Align.LEFT
|
|
RIGHT = Align.RIGHT
|
|
CENTER = Align.CENTER
|
|
|
|
TOP = VAlign.TOP
|
|
MIDDLE = VAlign.MIDDLE
|
|
BOTTOM = VAlign.BOTTOM
|
|
|
|
SPACE = WrapMode.SPACE
|
|
ANY = WrapMode.ANY
|
|
CLIP = WrapMode.CLIP
|
|
ELLIPSIS = WrapMode.ELLIPSIS
|
|
|
|
PACK = WHSettings.PACK
|
|
GIVEN = WHSettings.GIVEN
|
|
RELATIVE = WHSettings.RELATIVE
|
|
WEIGHT = WHSettings.WEIGHT
|