flet 0.70.0.dev6316__py3-none-any.whl → 0.70.0.dev6333__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.
Potentially problematic release.
This version of flet might be problematic. Click here for more details.
- flet/controls/border.py +14 -17
- flet/version.py +1 -1
- {flet-0.70.0.dev6316.dist-info → flet-0.70.0.dev6333.dist-info}/METADATA +1 -1
- {flet-0.70.0.dev6316.dist-info → flet-0.70.0.dev6333.dist-info}/RECORD +7 -7
- {flet-0.70.0.dev6316.dist-info → flet-0.70.0.dev6333.dist-info}/WHEEL +0 -0
- {flet-0.70.0.dev6316.dist-info → flet-0.70.0.dev6333.dist-info}/entry_points.txt +0 -0
- {flet-0.70.0.dev6316.dist-info → flet-0.70.0.dev6333.dist-info}/top_level.txt +0 -0
flet/controls/border.py
CHANGED
|
@@ -86,34 +86,37 @@ class BorderSide:
|
|
|
86
86
|
"""
|
|
87
87
|
The style of this side of the border.
|
|
88
88
|
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
Tip:
|
|
90
|
+
To omit a side, set `style` to [`BorderStyle.NONE`][flet.]. This skips
|
|
91
|
+
painting the border, but the border still has a `width`.
|
|
91
92
|
"""
|
|
92
93
|
|
|
93
94
|
def __post_init__(self):
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
if self.width < 0.0:
|
|
96
|
+
raise ValueError(
|
|
97
|
+
f"width must be greater than or equal to 0.0, got {self.width}"
|
|
98
|
+
)
|
|
97
99
|
|
|
98
100
|
# Properties
|
|
99
101
|
|
|
100
102
|
@property
|
|
101
103
|
def stroke_inset(self):
|
|
102
104
|
"""
|
|
103
|
-
The amount of the stroke width that lies inside
|
|
105
|
+
The amount of the stroke width that lies inside this `BorderSide`.
|
|
104
106
|
|
|
105
|
-
For example, this will return the `width` for a `stroke_align` of
|
|
106
|
-
the `width` for a `stroke_align` of 0
|
|
107
|
+
For example, this will return the `width` for a `stroke_align` of `-`1, half
|
|
108
|
+
the `width` for a `stroke_align` of `0`, and `0` for a `stroke_align` of `1`.
|
|
107
109
|
"""
|
|
108
110
|
return self.width * (1 - (1 + self.stroke_align) / 2)
|
|
109
111
|
|
|
110
112
|
@property
|
|
111
113
|
def stroke_outset(self):
|
|
112
114
|
"""
|
|
113
|
-
The amount of the stroke width that lies outside
|
|
115
|
+
The amount of the stroke width that lies outside this `BorderSide`.
|
|
114
116
|
|
|
115
|
-
For example, this will return 0 for a `stroke_align` of
|
|
116
|
-
`width` for a `stroke_align` of 0
|
|
117
|
+
For example, this will return `0` for a `stroke_align` of `-1`, half the
|
|
118
|
+
`width` for a `stroke_align` of `0`, and the `width` for a
|
|
119
|
+
`stroke_align` of `1`.
|
|
117
120
|
"""
|
|
118
121
|
return self.width * (1 + self.stroke_align) / 2
|
|
119
122
|
|
|
@@ -163,12 +166,6 @@ class Border:
|
|
|
163
166
|
|
|
164
167
|
Each side of the border is an instance of
|
|
165
168
|
[`BorderSide`][flet.].
|
|
166
|
-
|
|
167
|
-
Example:
|
|
168
|
-
```python
|
|
169
|
-
container_1.border = ft.Border.all(10, ft.Colors.PINK_600)
|
|
170
|
-
container_1.border = ft.Border.only(bottom=ft.BorderSide(1, "black"))
|
|
171
|
-
```
|
|
172
169
|
"""
|
|
173
170
|
|
|
174
171
|
top: BorderSide = field(default_factory=lambda: BorderSide.none())
|
flet/version.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
flet/__init__.py,sha256=rj0DuM9ZNrzkM-TpQ35iIspYLzsrxOCwkVxOHRX6oiU,26152
|
|
2
2
|
flet/app.py,sha256=HSws0Zm4ZO0-Hp2P9h7xirCVnRkKCVXhuekyAXT_9Fo,11883
|
|
3
3
|
flet/cli.py,sha256=IUM25fY_sqMtl0hlQGhlMQaBb1oNyO0VZeeBgRodhuA,204
|
|
4
|
-
flet/version.py,sha256=
|
|
4
|
+
flet/version.py,sha256=6j1IAvJZ-qg6Gr-Pw7sjNxKJqsvP9JH5W09Q_005oCM,2512
|
|
5
5
|
flet/auth/__init__.py,sha256=eDqmi0Ki8Resd198S7XxgYa2R14wnNqIXnYhBLPl8fQ,289
|
|
6
6
|
flet/auth/authorization.py,sha256=hP_36RiRPtSwmK_Yp6MMzAjQdDxbBiEcZ2yFNqyNiRs,357
|
|
7
7
|
flet/auth/authorization_service.py,sha256=6N2LvisSt7KI_VgfyCH0OaJ6jTcmXCkAldN1yYlakzQ,6410
|
|
@@ -37,7 +37,7 @@ flet/controls/animation.py,sha256=C3Sxqte4S225m3UvlQOm-DGxd1WJaqfdLpA6e10B_BM,37
|
|
|
37
37
|
flet/controls/base_control.py,sha256=Pn9b6ez81iFuWZw_rRsEHQw7CEkZVL8XHChORXgenPc,10545
|
|
38
38
|
flet/controls/base_page.py,sha256=SuuoK-XHqsTmOQZXYz84DxOibE9_43sKZulalSjIxYI,17927
|
|
39
39
|
flet/controls/blur.py,sha256=taMH4qtILyAFn1qNsgBGRV3z0GSH6V7VKPV3ZSBhOL4,602
|
|
40
|
-
flet/controls/border.py,sha256=
|
|
40
|
+
flet/controls/border.py,sha256=bZS9piQD_smyHeO6r30KejYvJIThwiqcZPpAUL34Tb0,8819
|
|
41
41
|
flet/controls/border_radius.py,sha256=ePfpA_uNhR6bfBSmYxy2cO0mZ3FU1r63qX_5RuHWwDM,6605
|
|
42
42
|
flet/controls/box.py,sha256=f9T25pJYOk-VzmzapgYHKprucTuIPMMJRphIBinrZQ4,12606
|
|
43
43
|
flet/controls/buttons.py,sha256=0mLPx4fBjQNGn-ejMuNu1wHb38_0BGU0JOggmqbUs1E,9943
|
|
@@ -246,8 +246,8 @@ flet/utils/platform_utils.py,sha256=U4cqV3EPi5QNYjbhfZmtk41-KMtI_P7KvVdnZzMOgJA,
|
|
|
246
246
|
flet/utils/slugify.py,sha256=e-lsoDc2_dk5jQnySaHCU83AA4O6mguEgCEdk2smW2Y,466
|
|
247
247
|
flet/utils/strings.py,sha256=R63_i7PdSAStCDPJ-O_WHBt3H02JQ14GSbnjLIpPTUc,178
|
|
248
248
|
flet/utils/vector.py,sha256=pYZzjldBWCZbSeSkZ8VmujwcZC7VBWk1NLBPA-2th3U,3207
|
|
249
|
-
flet-0.70.0.
|
|
250
|
-
flet-0.70.0.
|
|
251
|
-
flet-0.70.0.
|
|
252
|
-
flet-0.70.0.
|
|
253
|
-
flet-0.70.0.
|
|
249
|
+
flet-0.70.0.dev6333.dist-info/METADATA,sha256=sTSIUIJIzt5JHWn6BhfEubNUHk1QzT_H7aAClN8GhEk,6109
|
|
250
|
+
flet-0.70.0.dev6333.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
251
|
+
flet-0.70.0.dev6333.dist-info/entry_points.txt,sha256=mbBhHNUnLHiDqR36WeJrfLJU0Y0y087-M4wagQmaQ_Y,39
|
|
252
|
+
flet-0.70.0.dev6333.dist-info/top_level.txt,sha256=HbLrSnWJX2jZOEZAI14cGzW8Q5BbOGTtE-7knD5FDh0,5
|
|
253
|
+
flet-0.70.0.dev6333.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|