codestyle: explain why we instantiate the app at module level
This commit is contained in:
parent
2de1b3ce0e
commit
c7a4c7a411
1 changed files with 2 additions and 1 deletions
|
|
@ -20,9 +20,10 @@ logger = logging.getLogger(__name__)
|
||||||
class SammlerApp(App):
|
class SammlerApp(App):
|
||||||
async def on_mount(self) -> None:
|
async def on_mount(self) -> None:
|
||||||
create_db_and_tables()
|
create_db_and_tables()
|
||||||
_ = self.push_screen(AddInventoryScreen())
|
self.push_screen(AddInventoryScreen())
|
||||||
|
|
||||||
|
|
||||||
|
# so we can import it without running it
|
||||||
app = SammlerApp()
|
app = SammlerApp()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue