I have Calendar in Window and i want to make max_date dynamic somehow. To be day when window appear on screen
def get_date_window() -> Window:
return Window(
Format(text.process_most_important_thing),
Calendar(
id="cal",
on_click=process_date_selected,
config=CalendarConfig(
max_date=date.today()
)
),
state=SettingsState.first_menstruation_day,
parse_mode=ParseMode.HTML
)
And i