Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import flet as ft
- def load_configuration():
- pass
- def reset_configuration():
- pass
- def save_configuration():
- pass
- def main(page: ft.Page):
- top_row = ft.Row([
- ft.ElevatedButton(text='Load configuration', on_click=load_configuration),
- ft.ElevatedButton(text='Load custom...', on_click=load_configuration),
- ft.ElevatedButton(text='Reset', on_click=reset_configuration),
- ft.ElevatedButton(text='Save', on_click=save_configuration)
- ])
- text_boxes_tab = ft.Tab(
- text="confuguration",
- content=ft.Column([
- ft.Checkbox(label="item1", value=True),
- ft.Checkbox(label="item2", value=True),
- ft.Checkbox(label="item3", value=True),
- ft.Checkbox(label="item4", value=True),
- ft.Checkbox(label="item5", value=True),
- ft.Checkbox(label="item6", value=True),
- ft.Checkbox(label="item7", value=True),
- ft.Checkbox(label="item8", value=True),
- ft.Checkbox(label="item9", value=True),
- ft.Checkbox(label="item10", value=True),
- ft.Checkbox(label="item11", value=True),
- ft.Checkbox(label="item12", value=True),
- ft.Checkbox(label="item13", value=True),
- ft.Checkbox(label="item14", value=True),
- ft.Checkbox(label="item15", value=True),
- ft.Checkbox(label="item16", value=True),
- ft.Checkbox(label="item17", value=True),
- ]))
- tabs = ft.Tabs(selected_index=0, tabs=[text_boxes_tab], expand=1)
- page.add(top_row,tabs)
- ft.app(target=main)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement