forked from beeware/toga
/
factory.py
78 lines (68 loc) · 1.83 KB
/
factory.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
from . import dialogs
from .app import App, MainWindow
from .colors import native_color
from .command import Command
from .fonts import Font
from .icons import Icon
from .images import Image
from .paths import Paths
from .widgets.box import Box
from .widgets.button import Button
from .widgets.canvas import Canvas
from .widgets.detailedlist import DetailedList
from .widgets.imageview import ImageView
from .widgets.label import Label
from .widgets.multilinetextinput import MultilineTextInput
from .widgets.numberinput import NumberInput
# from .widgets.optioncontainer import OptionContainer
from .widgets.passwordinput import PasswordInput
from .widgets.progressbar import ProgressBar
from .widgets.scrollcontainer import ScrollContainer
from .widgets.selection import Selection
from .widgets.slider import Slider
# from .widgets.splitcontainer import SplitContainer
from .widgets.switch import Switch
# from .widgets.table import Table
from .widgets.textinput import TextInput
# from .widgets.tree import Tree
from .widgets.webview import WebView
from .window import Window
def not_implemented(feature):
print(f"[iOS] Not implemented: {feature}") # pragma: nocover
__all__ = [
"not_implemented",
"App",
"MainWindow",
"Command",
# Resources
"native_color", # colors
"Font",
"Icon",
"Image",
"Paths",
"dialogs",
# Widgets
"Box",
"Button",
"Canvas",
"DetailedList",
"ImageView",
"Label",
"MultilineTextInput",
"NumberInput",
# 'OptionContainer',
"PasswordInput",
"ProgressBar",
"ScrollContainer",
"Selection",
"Slider",
# 'SplitContainer',
"Switch",
# 'Table',
"TextInput",
# 'Tree',
"WebView",
"Window",
]
def __getattr__(name): # pragma: no cover
raise NotImplementedError(f"Toga's iOS backend doesn't implement {name}")