You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<class 'flet_core.control_event.ControlEvent'>
Future exception was never retrieved
future: <Future finished exception=AttributeError("'ControlEvent' object has no attribute 'local_x'")>
Traceback (most recent call last):
File "concurrent\futures\thread.py", line 58, in run
File "F:\code\workspace\StarRailOneDragon.env\venv\Lib\site-packages\flet_core\page.py", line 528, in wrapper
handler(*args)
File "F:\code\workspace\StarRailOneDragon\src\gui\world_patrol\world_patrol_draft_route_view.py", line 400, in on_map_click
x = int(e.local_x / scale)
^^^^^^^^^
Issue doesn't happen in version 0.21.2
Describe the results you expected:
Get ContainerTapEvent
Additional information you deem important (e.g. issue happens only occasionally):
Always
Flet version (pip show flet):
0.22.0
Give your requirements.txt file (don't pip freeze, instead give direct packages):
(The requirements)
Operating system:
Windows 10
Additional environment details:
Python 3.11.3
The text was updated successfully, but these errors were encountered:
Description
Click event of Container is not ContainerTapEvent, so I can't get position like local_x
Code example to reproduce the issue:
Describe the results you received:
<class 'flet_core.control_event.ControlEvent'>
Future exception was never retrieved
future: <Future finished exception=AttributeError("'ControlEvent' object has no attribute 'local_x'")>
Traceback (most recent call last):
File "concurrent\futures\thread.py", line 58, in run
File "F:\code\workspace\StarRailOneDragon.env\venv\Lib\site-packages\flet_core\page.py", line 528, in wrapper
handler(*args)
File "F:\code\workspace\StarRailOneDragon\src\gui\world_patrol\world_patrol_draft_route_view.py", line 400, in on_map_click
x = int(e.local_x / scale)
^^^^^^^^^
Issue doesn't happen in version 0.21.2
Describe the results you expected:
Get ContainerTapEvent
Additional information you deem important (e.g. issue happens only occasionally):
Always
Flet version (
pip show flet
):Give your
requirements.txt
file (don'tpip freeze
, instead give direct packages):Operating system:
Windows 10
Additional environment details:
Python 3.11.3
The text was updated successfully, but these errors were encountered: