Advertisement
Guest User

Untitled

a guest
Sep 25th, 2023
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. import flet as ft
  2.  
  3. def load_configuration():
  4. pass
  5.  
  6. def reset_configuration():
  7. pass
  8.  
  9. def save_configuration():
  10. pass
  11.  
  12.  
  13. def main(page: ft.Page):
  14.  
  15.  
  16. top_row = ft.Row([
  17. ft.ElevatedButton(text='Load configuration', on_click=load_configuration),
  18. ft.ElevatedButton(text='Load custom...', on_click=load_configuration),
  19. ft.ElevatedButton(text='Reset', on_click=reset_configuration),
  20. ft.ElevatedButton(text='Save', on_click=save_configuration)
  21. ])
  22.  
  23.  
  24. text_boxes_tab = ft.Tab(
  25. text="confuguration",
  26. content=ft.Column([
  27. ft.Checkbox(label="item1", value=True),
  28. ft.Checkbox(label="item2", value=True),
  29. ft.Checkbox(label="item3", value=True),
  30. ft.Checkbox(label="item4", value=True),
  31. ft.Checkbox(label="item5", value=True),
  32. ft.Checkbox(label="item6", value=True),
  33. ft.Checkbox(label="item7", value=True),
  34. ft.Checkbox(label="item8", value=True),
  35. ft.Checkbox(label="item9", value=True),
  36. ft.Checkbox(label="item10", value=True),
  37. ft.Checkbox(label="item11", value=True),
  38. ft.Checkbox(label="item12", value=True),
  39. ft.Checkbox(label="item13", value=True),
  40. ft.Checkbox(label="item14", value=True),
  41. ft.Checkbox(label="item15", value=True),
  42. ft.Checkbox(label="item16", value=True),
  43. ft.Checkbox(label="item17", value=True),
  44. ]))
  45.  
  46.  
  47. tabs = ft.Tabs(selected_index=0, tabs=[text_boxes_tab], expand=1)
  48.  
  49. page.add(top_row,tabs)
  50.  
  51.  
  52. ft.app(target=main)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement