Skip to content

Commit

Permalink
Update greetings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogendo authored Sep 2, 2023
1 parent 1bc22e9 commit 5dafe18
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions greetings.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,11 @@ def main(page:ft.Page):
page.title="greet app"
page.theme_ = "dark"

first_name=ft.TextField(place_holder="First name", autofocus=True)
last_name=ft.TextFIeld(place_holder="las name", autofocus= True)
greet_message="hello {}.value {}.value !"

def click_btn(e):



greet_button=ft.ElevatedButton(text="Greet", onClick=click_btn)

def main(page):

first_name = ft.TextField(label="First name", autofocus=True)
last_name = ft.TextField(label="Last name")
greetings = ft.Column()
first_name=ft.TextField(label="First name", autofocus=True)
last_name=ft.TextFIeld(label="last name", autofocus= True)
greetings = ft.Column()

def btn_click(e):
def btn_click(e):
greetings.controls.append(ft.Text(f"Hello, {first_name.value} {last_name.value}!"))
first_name.value = ""
last_name.value = ""
Expand Down

0 comments on commit 5dafe18

Please sign in to comment.