Replies: 1 comment
-
Please provide complete, runnable code example. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
this error :TypeError: Control._build_add_commands() missing 1 required positional argument: 'self', when I run this code, idk
where are you, father
`import flet
from flet import *
class Wellcome_page(UserControl):
def init(self):
super().init()
class Home(UserControl):
def init(self):
super().init()
def build(self):
return Text("Yes",size=100)
def main(page:Page):
page.vertical_alignment = MainAxisAlignment.CENTER
page.horizontal_alignment = CrossAxisAlignment.CENTER
flet.app(target=main)`
Beta Was this translation helpful? Give feedback.
All reactions