Skip to content

Commit

Permalink
Update python-realtime-chat.md (flet-dev#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
kip218 authored Jun 28, 2023
1 parent e69eff2 commit 7967a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/python-realtime-chat.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def main(page: ft.Page):
chat, ft.Row(controls=[new_message, ft.ElevatedButton("Send", on_click=send_click)])
)

ft.app("chat", target=main, view=ft.WEB_BROWSER)
ft.app(target=main, view=ft.WEB_BROWSER)
```

When user clicks on the "Send" button, it triggers `on_click` event which calls `send_click` method. `send_click` then adds new `Text` control to the list of Column `controls` and clears `new_message` TextField value.
Expand Down

0 comments on commit 7967a58

Please sign in to comment.