flet 0.70.0.dev6290__py3-none-any.whl → 0.70.0.dev6293__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/components/observable.py +6 -0
- flet/controls/material/form_field_control.py +1 -2
- flet/controls/services/browser_context_menu.py +4 -6
- flet/controls/services/clipboard.py +4 -5
- flet/version.py +1 -1
- {flet-0.70.0.dev6290.dist-info → flet-0.70.0.dev6293.dist-info}/METADATA +1 -1
- {flet-0.70.0.dev6290.dist-info → flet-0.70.0.dev6293.dist-info}/RECORD +10 -10
- {flet-0.70.0.dev6290.dist-info → flet-0.70.0.dev6293.dist-info}/WHEEL +0 -0
- {flet-0.70.0.dev6290.dist-info → flet-0.70.0.dev6293.dist-info}/entry_points.txt +0 -0
- {flet-0.70.0.dev6290.dist-info → flet-0.70.0.dev6293.dist-info}/top_level.txt +0 -0
flet/components/observable.py
CHANGED
|
@@ -127,6 +127,12 @@ class Observable:
|
|
|
127
127
|
for fn in list(self.__listeners):
|
|
128
128
|
fn(self, field)
|
|
129
129
|
|
|
130
|
+
def notify(self):
|
|
131
|
+
"""
|
|
132
|
+
Manually notify listeners that something changed.
|
|
133
|
+
"""
|
|
134
|
+
self._notify(None)
|
|
135
|
+
|
|
130
136
|
# collection wrapping
|
|
131
137
|
def _wrap_if_collection(self, name: str, value: Any) -> Any:
|
|
132
138
|
if isinstance(value, list) and not isinstance(value, ObservableList):
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
from dataclasses import field
|
|
2
1
|
from enum import Enum
|
|
3
2
|
from typing import Optional, Union
|
|
4
3
|
|
|
@@ -31,7 +30,7 @@ class FormFieldControl(LayoutControl):
|
|
|
31
30
|
Text size in virtual pixels.
|
|
32
31
|
"""
|
|
33
32
|
|
|
34
|
-
text_style: TextStyle =
|
|
33
|
+
text_style: Optional[TextStyle] = None
|
|
35
34
|
"""
|
|
36
35
|
The [`TextStyle`][flet.] to use for the
|
|
37
36
|
text being edited.
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
from typing import Optional
|
|
2
|
-
|
|
3
1
|
from flet.controls.base_control import control
|
|
4
2
|
from flet.controls.services.service import Service
|
|
5
3
|
|
|
@@ -12,12 +10,12 @@ class BrowserContextMenu(Service):
|
|
|
12
10
|
super().__post_init__(ref)
|
|
13
11
|
self.__disabled = False
|
|
14
12
|
|
|
15
|
-
async def enable(self
|
|
16
|
-
await self._invoke_method("enable_menu"
|
|
13
|
+
async def enable(self):
|
|
14
|
+
await self._invoke_method("enable_menu")
|
|
17
15
|
self.__disabled = False
|
|
18
16
|
|
|
19
|
-
async def disable(self
|
|
20
|
-
await self._invoke_method("disable_menu"
|
|
17
|
+
async def disable(self):
|
|
18
|
+
await self._invoke_method("disable_menu")
|
|
21
19
|
self.__disabled = True
|
|
22
20
|
|
|
23
21
|
@property
|
|
@@ -2,14 +2,13 @@ from typing import Optional
|
|
|
2
2
|
|
|
3
3
|
from flet.controls.base_control import control
|
|
4
4
|
from flet.controls.services.service import Service
|
|
5
|
-
from flet.controls.types import Number
|
|
6
5
|
|
|
7
6
|
__all__ = ["Clipboard"]
|
|
8
7
|
|
|
9
8
|
|
|
10
9
|
@control("Clipboard")
|
|
11
10
|
class Clipboard(Service):
|
|
12
|
-
async def set(self, value: str
|
|
11
|
+
async def set(self, value: str) -> None:
|
|
13
12
|
"""
|
|
14
13
|
Set clipboard data on a client side (user's web browser or a desktop).
|
|
15
14
|
|
|
@@ -21,9 +20,9 @@ class Clipboard(Service):
|
|
|
21
20
|
```
|
|
22
21
|
///
|
|
23
22
|
"""
|
|
24
|
-
await self._invoke_method("set", {"data": value}
|
|
23
|
+
await self._invoke_method("set", {"data": value})
|
|
25
24
|
|
|
26
|
-
async def get(self
|
|
25
|
+
async def get(self) -> Optional[str]:
|
|
27
26
|
"""
|
|
28
27
|
Set clipboard data on a client side (user's web browser or a desktop).
|
|
29
28
|
|
|
@@ -35,4 +34,4 @@ class Clipboard(Service):
|
|
|
35
34
|
```
|
|
36
35
|
///
|
|
37
36
|
"""
|
|
38
|
-
return await self._invoke_method("get"
|
|
37
|
+
return await self._invoke_method("get")
|
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=hU3hv7N1EVtoOxbPTKSlkYo6NLUzc2ZYt_YVq_ofGik,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
|
|
@@ -20,7 +20,7 @@ flet/components/component.py,sha256=-bkB0A3Q9OpiQ0xuxeK15wajYnJl8hjnsc5_zKTFfHE,
|
|
|
20
20
|
flet/components/component_decorator.py,sha256=14ocjVSXPVl-SduJUtEQ1JivhpIoWnDDG4ioD0TCn0I,639
|
|
21
21
|
flet/components/component_owned.py,sha256=eC2NNNFWmZADBivLHjScfrmEj-s7xygHlABo7CiGtFA,563
|
|
22
22
|
flet/components/memo.py,sha256=tpztAInP4LkGOCFSJLyRuKp2t6EKM2AnX7SQmXiUZH8,620
|
|
23
|
-
flet/components/observable.py,sha256=
|
|
23
|
+
flet/components/observable.py,sha256=Eo9nVHgEbgOfU6dcMhftmRq8sQDaDL5KBrYrQEhNAqQ,7020
|
|
24
24
|
flet/components/public_utils.py,sha256=9orF-ZoxspZtTmjMUp9KmXL4-jpQG6TAOVSrGTEbVyo,180
|
|
25
25
|
flet/components/utils.py,sha256=6Uzs2cXg2VAWKr82vghSGTL3JglbHzADxkqc_7vns8o,2079
|
|
26
26
|
flet/components/hooks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -173,7 +173,7 @@ flet/controls/material/expansion_tile.py,sha256=sEAXoc7-FkjFUEIgM5pK3LVKIpjsTxI2
|
|
|
173
173
|
flet/controls/material/filled_button.py,sha256=ZtCy47Yrv2B1RyDk1pszVKiUj-YtMcLI7koTf5Bz0Mo,452
|
|
174
174
|
flet/controls/material/filled_tonal_button.py,sha256=t9zXaMvakzmHUWtPfJK1ORAd8P3O5XCPi098PYAiOCU,574
|
|
175
175
|
flet/controls/material/floating_action_button.py,sha256=1i9__kC4Y0uuha2lnWInYszUXLQW05_PmgiAwPUOpAk,6023
|
|
176
|
-
flet/controls/material/form_field_control.py,sha256=
|
|
176
|
+
flet/controls/material/form_field_control.py,sha256=8T3wrdfJ3j9Npz_A90TjJSFOzuVuhzR50v1qCpiRLOM,8433
|
|
177
177
|
flet/controls/material/icon_button.py,sha256=ZmOmOtk7fv1B2gWOvf0yTvwxxRdI7UDl5YsNLsEzLNA,7788
|
|
178
178
|
flet/controls/material/icons.py,sha256=dsBk2nwUW3SQjwpzPv8G53ILP_zCg7tJocylHQLC-RU,287261
|
|
179
179
|
flet/controls/material/list_tile.py,sha256=RIBO8ibubZjnGyWV4iTw7FOhMVNJM6jImoUYumAvjfw,8061
|
|
@@ -204,8 +204,8 @@ flet/controls/material/time_picker.py,sha256=_gUTaQi4N-mo1Oj_yJEsti8ToM0WhwhofbC
|
|
|
204
204
|
flet/controls/material/tooltip.py,sha256=PTqJiiE95z4WCTlvCx7i3vA-gGwphUT7w_2oXMiiVtY,5636
|
|
205
205
|
flet/controls/material/vertical_divider.py,sha256=kOqmL4XoL6tfRHoXA3oJurvIaixwn54Qf6ATC0-CT48,2752
|
|
206
206
|
flet/controls/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
207
|
-
flet/controls/services/browser_context_menu.py,sha256=
|
|
208
|
-
flet/controls/services/clipboard.py,sha256=
|
|
207
|
+
flet/controls/services/browser_context_menu.py,sha256=orB2vzQmZ3TvgEdZV1NUUkcQkEs49uFr9unyum2J0ug,592
|
|
208
|
+
flet/controls/services/clipboard.py,sha256=XWp8OqFBUwd1ULeQ35nufGI_yR0WqNauWv8Zf1CHR0k,846
|
|
209
209
|
flet/controls/services/file_picker.py,sha256=Gsh1A4XBD3nIS9MDsLDirDwTMwO9nBZGHeC-F2furXI,7662
|
|
210
210
|
flet/controls/services/haptic_feedback.py,sha256=JZMveq3loC3CWt3LPp87iWl6IeAzyUOnRejKzX9nLmo,1164
|
|
211
211
|
flet/controls/services/semantics_service.py,sha256=eF_EcVqOMsgUyyZYhKTNLP-PcFTX0a8NQsQkAU-jxyk,1662
|
|
@@ -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.dev6293.dist-info/METADATA,sha256=gRuPy9DY_QYRPpQEDBkemBv69uY3-nALpAhs-tpi_mk,6051
|
|
250
|
+
flet-0.70.0.dev6293.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
251
|
+
flet-0.70.0.dev6293.dist-info/entry_points.txt,sha256=mbBhHNUnLHiDqR36WeJrfLJU0Y0y087-M4wagQmaQ_Y,39
|
|
252
|
+
flet-0.70.0.dev6293.dist-info/top_level.txt,sha256=HbLrSnWJX2jZOEZAI14cGzW8Q5BbOGTtE-7knD5FDh0,5
|
|
253
|
+
flet-0.70.0.dev6293.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|