flet web test
This commit is contained in:
9
web/view.py
Normal file
9
web/view.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import flet as ft
|
||||
from views import main_view
|
||||
|
||||
def ViewsHendler(page: ft.Page):
|
||||
return {
|
||||
"/main": main_view.MainView(),
|
||||
"/about": ft.View(route="/about", controls=[ft.Text("О нас",color="#008000", size=20)]),
|
||||
"/contact": ft.View(route="/contact", controls=[ft.Text("Контакты",color="#FF0000", size=20)])
|
||||
}
|
||||
Reference in New Issue
Block a user