pre-commit and red pill

This commit is contained in:
2024-04-19 20:02:44 +00:00
parent 1720af54e9
commit 536261dce7
18 changed files with 167 additions and 125 deletions

View File

@ -3,7 +3,7 @@ from .title import Title
from .views import views_handler
__all__ = [
"AppView",
"Title",
"views_handler"
]
'AppView',
'Title',
'views_handler',
]

View File

@ -1,4 +1,5 @@
import os
def Title(title: str):
return str(os.path.basename(title)).replace('.py', '').title()
return str(os.path.basename(title)).replace('.py', '').title()

View File

@ -1,7 +1,8 @@
import flet as ft
class AppView(ft.View):
def __init__(self, route, controls):
super().__init__()
self.controls = controls
self.route = route
self.route = route

View File

@ -1,7 +1,8 @@
from modules import Home, Settings
def views_handler(page):
return {
'/': Home(page),
'/settings': Settings(page)
}
'/settings': Settings(page),
}