flet-dev / flet

Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
https://flet.dev
Apache License 2.0
11.24k stars 433 forks source link

Trello clone example #2486

Closed ronnydemeyerAM closed 3 months ago

ronnydemeyerAM commented 9 months ago

Trello clone example not working

I'm learning python in evening school and i wanted to follow your Trello clone example I copied the codes for the first 4 files and already have trouble.

In main.py "TrelloApp" is unknown, i added:

from app_bar import TrelloApp

Running this already gives an error:

""" C:\Users\SIDDMRO.conda\envs\am2311_serverx\python.exe \ampythonbelgium\Jobs\COO\apps\trello_clone\src\main.py Unhandled error processing page session e5c7dd52-f539-49c5-9706-215777c8e5f0: Traceback (most recent call last): File "C:\Users\SIDDMRO.conda\envs\am2311_serverx\Lib\site-packages\flet_runtime\app.py", line 359, in on_session_created session_handler(page) File "\ampythonbelgium\Jobs\COO\apps\trello_clone\src\main.py", line 15, in main page.add(app) File "C:\Users\SIDDMRO.conda\envs\am2311_serverx\Lib\site-packages\flet_core\page.py", line 300, in add r = self.update(self) ^^^^^^^^^^^^^^^^^^^ File "C:\Users\SIDDMRO.conda\envs\am2311_serverx\Lib\site-packages\flet_core\page.py", line 411, in update commands, added_controls, removed_controls = self.__prepare_update(*controls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\SIDDMRO.conda\envs\am2311_serverx\Lib\site-packages\flet_core\page.py", line 433, in __prepare_update control.build_update_commands( File "C:\Users\SIDDMRO.conda\envs\am2311_serverx\Lib\site-packages\flet_core\control.py", line 374, in build_update_commands ctrl.build_update_commands( File "C:\Users\SIDDMRO.conda\envs\am2311_serverx\Lib\site-packages\flet_core\control.py", line 386, in build_update_commands innerCmds = ctrl._build_add_commands( ^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'TrelloApp' object has no attribute '_build_add_commands' """

Operating system = Windows 11

Joerki commented 6 months ago

Hi @RonnyDeMeyer,

I also looked for that and found the example here:

https://github.com/flet-dev/examples

But also that code is deprecated. Let's hope that the example gets a fix for stable release 1.0:

https://github.com/flet-dev/examples/issues/115

abdulkuddusa4 commented 4 months ago

when will 1.0 release

ndonkoHenri commented 4 months ago

Can you please give the code another try? It has been updated.