pre-commit and red pill
This commit is contained in:
@ -3,7 +3,7 @@ from .title import Title
|
||||
from .views import views_handler
|
||||
|
||||
__all__ = [
|
||||
"AppView",
|
||||
"Title",
|
||||
"views_handler"
|
||||
]
|
||||
'AppView',
|
||||
'Title',
|
||||
'views_handler',
|
||||
]
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
@ -1,7 +1,8 @@
|
||||
from modules import Home, Settings
|
||||
|
||||
|
||||
def views_handler(page):
|
||||
return {
|
||||
'/': Home(page),
|
||||
'/settings': Settings(page)
|
||||
}
|
||||
'/settings': Settings(page),
|
||||
}
|
||||
|
Reference in New Issue
Block a user