""" This is where the application is implemented. """ import logging from textual.app import App from textual.logging import TextualHandler from .database import create_db_and_tables from .tui import AddInventoryScreen logging.basicConfig( level="NOTSET", handlers=[TextualHandler()], ) logger = logging.getLogger(__name__) class SammlerApp(App): async def on_mount(self) -> None: create_db_and_tables() _ = self.push_screen(AddInventoryScreen()) app = SammlerApp() def main() -> None: app.run() if __name__ == "__main__": main()