pythonx-compose 0.1.0a1__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.
- pythonx/compose/__init__.py +4 -0
- pythonx/compose/__init__.pyi +1 -0
- pythonx/compose/_reexport.py +512 -0
- pythonx/compose/foundation/__init__.py +5 -0
- pythonx/compose/foundation/__init__.pyi +17 -0
- pythonx/compose/foundation/layout/__init__.py +5 -0
- pythonx/compose/foundation/layout/__init__.pyi +2 -0
- pythonx/compose/foundation/text/__init__.py +5 -0
- pythonx/compose/foundation/text/input/__init__.py +5 -0
- pythonx/compose/foundation/text/input/__init__.pyi +78 -0
- pythonx/compose/layout/__init__.py +25 -0
- pythonx/compose/layout/__init__.pyi +878 -0
- pythonx/compose/layout/arrangement.py +34 -0
- pythonx/compose/material/__init__.py +8 -0
- pythonx/compose/material/__init__.pyi +1 -0
- pythonx/compose/material/icons/__init__.py +9 -0
- pythonx/compose/material/icons/__init__.pyi +1159 -0
- pythonx/compose/material3/__init__.py +24 -0
- pythonx/compose/material3/__init__.pyi +3305 -0
- pythonx/compose/py.typed +0 -0
- pythonx/compose/pythonx-map.toml +73 -0
- pythonx/compose/runtime/__init__.py +128 -0
- pythonx/compose/runtime/__init__.pyi +180 -0
- pythonx/compose/ui/__init__.py +21 -0
- pythonx/compose/ui/__init__.pyi +975 -0
- pythonx/compose/ui/alignment.py +47 -0
- pythonx/compose/ui/graphics/__init__.py +5 -0
- pythonx/compose/ui/graphics/__init__.pyi +795 -0
- pythonx/compose/ui/graphics/vector/__init__.py +5 -0
- pythonx/compose/ui/graphics/vector/__init__.pyi +221 -0
- pythonx/compose/ui/modifier.py +110 -0
- pythonx/compose/ui/text/__init__.py +5 -0
- pythonx/compose/ui/text/__init__.pyi +703 -0
- pythonx/compose/ui/unit/__init__.py +19 -0
- pythonx/compose/ui/unit/__init__.pyi +348 -0
- pythonx_compose-0.1.0a1.dist-info/METADATA +228 -0
- pythonx_compose-0.1.0a1.dist-info/RECORD +40 -0
- pythonx_compose-0.1.0a1.dist-info/WHEEL +5 -0
- pythonx_compose-0.1.0a1.dist-info/licenses/LICENSE +21 -0
- pythonx_compose-0.1.0a1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""`pythonx/compose/layout/arrangement.py` -- what the adaptation layer now produces, and how to spell it.
|
|
2
|
+
|
|
3
|
+
The same story as `pythonx/compose/ui/alignment.py`, and the same two facts. `Arrangement`'s constants
|
|
4
|
+
are bound by the walker since `PythonMultiplatform`'s `80318c16`, and `6d896fba` is the proof: the
|
|
5
|
+
same child in the same row lands at opposite edges under `Start` and `End`, which is what says the
|
|
6
|
+
value crossed rather than that something merely composed.
|
|
7
|
+
|
|
8
|
+
## The names the layer produces
|
|
9
|
+
|
|
10
|
+
Bottom Center End SpaceAround SpaceBetween SpaceEvenly Start Top
|
|
11
|
+
|
|
12
|
+
Read out of the walked table. Compose declares more (`spacedBy`, for one) -- those are functions
|
|
13
|
+
rather than constants and reach Python through the ordinary function path, not this one.
|
|
14
|
+
|
|
15
|
+
## They are read, not called
|
|
16
|
+
|
|
17
|
+
from pythonx.compose.layout import Row, Arrangement
|
|
18
|
+
from pythonx.compose.material3 import Text
|
|
19
|
+
from pythonx.compose.ui import Modifier # its empty factory registered (ui/modifier.py)
|
|
20
|
+
|
|
21
|
+
Row(
|
|
22
|
+
modifier=Modifier.width(80),
|
|
23
|
+
horizontal_arrangement=Arrangement.End, # no parentheses
|
|
24
|
+
content=lambda scope: Text('X'),
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
Since upstream's `46be0212` a static getter is evaluated on attribute access, so `Arrangement.End()`
|
|
28
|
+
raises `TypeError` -- the value is not callable. A function inside the object follows the module
|
|
29
|
+
rule: `Arrangement.spaced_by(8)`, never `spacedBy`.
|
|
30
|
+
|
|
31
|
+
The width matters as much as the spelling: a row wraps its content, so with no width constraint
|
|
32
|
+
there is no spare space and every arrangement puts the child in the same place. Upstream's proof
|
|
33
|
+
passed for that wrong reason once, before its opposite-end control caught it.
|
|
34
|
+
"""
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"""`pythonx.compose.material` -- the Pythonic view of `androidx.compose.material` (see `pythonx/compose/_reexport.py`).
|
|
2
|
+
|
|
3
|
+
Material 2's own composables are not bound; this package is here for `material.icons`.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from pythonx.compose._reexport import reexport
|
|
7
|
+
|
|
8
|
+
__getattr__, __dir__ = reexport(__name__)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# GENERATED by scripts/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 37103737430, commit a5028618, Compose 1.11.1). Do not edit.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"""`pythonx.compose.material.icons` -- the Pythonic view of `androidx.compose.material.icons` (see `pythonx/compose/_reexport.py`).
|
|
2
|
+
|
|
3
|
+
`Icons.Default.Add` is served by the rule; `material3` lends `Icons.Default` as `DefaultIcons`
|
|
4
|
+
(`[aliases]` in `pythonx-map.toml`, INTENT section 5.7).
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from pythonx.compose._reexport import reexport
|
|
8
|
+
|
|
9
|
+
__getattr__, __dir__ = reexport(__name__)
|