Replies: 2 comments 2 replies
-
Have the same question! class MyPage(ft.Page):
from flet.core.connection import Connection
import asyncio
from typing import Optional
from concurrent.futures import ThreadPoolExecutor
def __init__(self,
conn: Connection,
session_id,
loop: asyncio.AbstractEventLoop,
executor: Optional[ThreadPoolExecutor] = None,
repo: AbsRepository = FakeRepository,
):
super().__init__(conn, session_id, loop, executor)
self.repo = repo
def main(page: ft.Page):
page = MyPage(page.connection, page.session_id, page.loop, page.executor)
... some code....
if __name__ == "__main__":
ft.app(target=main) App starts without errors, but interface don't work: everything is in the place, but Buttons do nothing. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have an idea. Essentially, everything we create within controllers (widgets?) is built on a Also, I have a question for @FeodorFitsner how should we refer to elements like |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm a newbie flet user
The following code is the effect I want to achieve, but it can't actually meet my expectations
I wonder if it is possible to support both procedural and object-oriented writing styles like PyQt5
After many tries I get this error, there are still some parameter dependencies that I can't figure out
In the end, it can only be written like this, but it is no different from the official guidance, just change the formal parameters
Many thanks to the author's framework for bringing a good GUI programming experience
Beta Was this translation helpful? Give feedback.
All reactions