Files
StreamCap/app/ui/base_page.py
2025-03-24 19:55:40 +08:00

19 lines
462 B
Python

import flet as ft
class PageBase:
def __init__(self, app):
"""Initialize the base page class.
:param app: The main application object.
"""
self.app = app
self.page: ft.Page = app.page
self.content_area = app.content_area
self._ = {}
async def load(self):
"""Load page content into the content area.
"""
raise NotImplementedError("Subclasses must implement this method")