dimi-ui 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dimi/__init__.py +115 -0
- dimi/_app.py +1237 -0
- dimi/_canvas.py +1259 -0
- dimi/_components.py +268 -0
- dimi/_context.py +296 -0
- dimi/_dimi.py +240 -0
- dimi/_entry_line.py +923 -0
- dimi/_error.py +5 -0
- dimi/_icon.py +883 -0
- dimi/_interaction.py +226 -0
- dimi/_node.py +760 -0
- dimi/_primitives.py +344 -0
- dimi/_scroll.py +204 -0
- dimi/_style.py +276 -0
- dimi/_version.py +6 -0
- dimi/app.py +31 -0
- dimi/icon.py +39 -0
- dimi/typehinting.py +65 -0
- dimi/widget.py +29 -0
- dimi_ui-0.1.0.dist-info/METADATA +73 -0
- dimi_ui-0.1.0.dist-info/RECORD +23 -0
- dimi_ui-0.1.0.dist-info/WHEEL +5 -0
- dimi_ui-0.1.0.dist-info/top_level.txt +1 -0
dimi/__init__.py
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
__all__ = [
|
|
2
|
+
"Absolute",
|
|
3
|
+
"Align",
|
|
4
|
+
"Anchor",
|
|
5
|
+
"Axis",
|
|
6
|
+
"Button",
|
|
7
|
+
"ButtonStatus",
|
|
8
|
+
"ChooseAxis",
|
|
9
|
+
"Constraint",
|
|
10
|
+
"Context",
|
|
11
|
+
"ContextOrigin",
|
|
12
|
+
"Corners",
|
|
13
|
+
"Directions",
|
|
14
|
+
"EllipseStyle",
|
|
15
|
+
"Exact",
|
|
16
|
+
"Fill",
|
|
17
|
+
"Font",
|
|
18
|
+
"FontAlign",
|
|
19
|
+
"FontDirection",
|
|
20
|
+
"HoverStatus",
|
|
21
|
+
"Hug",
|
|
22
|
+
"IllegalOperation",
|
|
23
|
+
"ImageFit",
|
|
24
|
+
"ImageRepeat",
|
|
25
|
+
"NinePatch",
|
|
26
|
+
"Percent",
|
|
27
|
+
"Ratio",
|
|
28
|
+
"RectStyle",
|
|
29
|
+
"RenderOrder",
|
|
30
|
+
"RendererCanvas",
|
|
31
|
+
"ScaleQuality",
|
|
32
|
+
"Span",
|
|
33
|
+
"Style",
|
|
34
|
+
"SurfaceCanvas",
|
|
35
|
+
"TextStyle",
|
|
36
|
+
"Transform",
|
|
37
|
+
"Wrap",
|
|
38
|
+
"app",
|
|
39
|
+
"begin",
|
|
40
|
+
"element",
|
|
41
|
+
"ellipse",
|
|
42
|
+
"end",
|
|
43
|
+
"get_current_context",
|
|
44
|
+
"get_interaction",
|
|
45
|
+
"icon",
|
|
46
|
+
"image",
|
|
47
|
+
"push_id",
|
|
48
|
+
"push_style",
|
|
49
|
+
"rect",
|
|
50
|
+
"replace_nested_style",
|
|
51
|
+
"text",
|
|
52
|
+
"typehinting",
|
|
53
|
+
"using",
|
|
54
|
+
"when",
|
|
55
|
+
"widget",
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
from . import app, icon, typehinting, widget # todo: animation module
|
|
59
|
+
from ._canvas import RendererCanvas, SurfaceCanvas
|
|
60
|
+
from ._context import Context, ContextOrigin
|
|
61
|
+
from ._dimi import (
|
|
62
|
+
begin,
|
|
63
|
+
element,
|
|
64
|
+
ellipse,
|
|
65
|
+
end,
|
|
66
|
+
get_current_context,
|
|
67
|
+
get_interaction,
|
|
68
|
+
image,
|
|
69
|
+
push_id,
|
|
70
|
+
push_style,
|
|
71
|
+
rect,
|
|
72
|
+
replace_nested_style,
|
|
73
|
+
text,
|
|
74
|
+
using,
|
|
75
|
+
when,
|
|
76
|
+
)
|
|
77
|
+
from ._error import IllegalOperation
|
|
78
|
+
from ._interaction import (
|
|
79
|
+
Button,
|
|
80
|
+
ButtonStatus,
|
|
81
|
+
HoverStatus,
|
|
82
|
+
)
|
|
83
|
+
from ._primitives import (
|
|
84
|
+
Absolute,
|
|
85
|
+
Align,
|
|
86
|
+
Anchor,
|
|
87
|
+
Axis,
|
|
88
|
+
ChooseAxis,
|
|
89
|
+
Constraint,
|
|
90
|
+
Corners,
|
|
91
|
+
Directions,
|
|
92
|
+
Exact,
|
|
93
|
+
Fill,
|
|
94
|
+
Font,
|
|
95
|
+
FontAlign,
|
|
96
|
+
FontDirection,
|
|
97
|
+
Hug,
|
|
98
|
+
ImageFit,
|
|
99
|
+
ImageRepeat,
|
|
100
|
+
NinePatch,
|
|
101
|
+
Percent,
|
|
102
|
+
Ratio,
|
|
103
|
+
RenderOrder,
|
|
104
|
+
ScaleQuality,
|
|
105
|
+
Span,
|
|
106
|
+
Transform,
|
|
107
|
+
Wrap,
|
|
108
|
+
)
|
|
109
|
+
from ._style import (
|
|
110
|
+
EllipseStyle,
|
|
111
|
+
RectStyle,
|
|
112
|
+
Style,
|
|
113
|
+
TextStyle,
|
|
114
|
+
)
|
|
115
|
+
from ._version import __version__ as __version__ # todo add "lazy" with Python 3.15
|