33 lines
1.0 KiB
Python
33 lines
1.0 KiB
Python
import logging
|
|
|
|
from rio import Column, Component, event, TextStyle, Text, Spacer
|
|
|
|
from src.ez_lan_manager import ConfigurationService
|
|
from src.ez_lan_manager.components.MainViewContentBox import MainViewContentBox
|
|
|
|
logger = logging.getLogger(__name__.split(".")[-1])
|
|
|
|
class ManageTournamentsPage(Component):
|
|
@event.on_populate
|
|
async def on_populate(self) -> None:
|
|
await self.session.set_title(f"{self.session[ConfigurationService].get_lan_info().name} - Turnier Verwaltung")
|
|
|
|
def build(self) -> Component:
|
|
return Column(
|
|
MainViewContentBox(
|
|
Column(
|
|
Text(
|
|
text="Turnier Verwaltung",
|
|
style=TextStyle(
|
|
fill=self.session.theme.background_color,
|
|
font_size=1.2
|
|
),
|
|
margin_top=2,
|
|
margin_bottom=2,
|
|
align_x=0.5
|
|
)
|
|
)
|
|
),
|
|
Spacer()
|
|
)
|