__init__.py 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. __all__ = ["Widget", "label", "image_manager", "container", "screen", "font_manager", "image", "flow_container"]
  2. from . import container
  3. from . import flow_container
  4. from . import font_manager as FontManager
  5. from . import image
  6. from . import image_manager as ImageManager
  7. from . import label
  8. from . import screen
  9. from . import widget
  10. Widget = widget.Widget
  11. Label = label.Label
  12. Container = container.Container
  13. Screen = screen.Screen
  14. Image = image.Image
  15. FlowContainer = flow_container.FlowContainer
  16. # Constant values
  17. Width = 320
  18. Height = 240
  19. icon_width = 80
  20. icon_height = 80
  21. icon_ext = ".sh"
  22. ICON_TYPES = {"Emulator": 7, "FILE": 6, "STAT": 5, "NAV": 4, "LETTER": 3, "FUNC": 2, "DIR": 1, "EXE": 0,
  23. "None": -1} # FUNC is like UI widget's function,DIR contains child page,EXE just execute a binary
  24. ## H=horizontal, V=vertical, S=Single Line
  25. # SLeft start from left, single line
  26. # SCenter star from center, single line
  27. ALIGN = {"HLeft": 0, "HCenter": 1, "HRight": 2, "VMiddle": 3, "SLeft": 4, "VCenter": 5, "SCenter": 6}