79429177

Date: 2025-02-11 07:30:58
Score: 1
Natty:
Report link

import flet as ft from controls import TreeView

def main(page: ft.Page): page.add( TreeView( { ft.Checkbox("Security"): { ft.Checkbox("Firewall"): { ft.Checkbox("Local"): {}, ft.Checkbox("Public"): {}, }, ft.Checkbox(label="Password Manager"): {}, ft.Checkbox("Antivirus"): {}, }, ft.Checkbox("Dev", value=True): { ft.Checkbox( label="Show logs", on_change=lambda _: print("This is a test!") ): {}, ft.Checkbox("Take Snapshot", value=True): {}, }, }, set_on_change=True, ) )

ft.app(target=main)

this code might help you!

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mirsab Yasin