from __future__ import annotations import toga from ..dialogs.about import AboutDialog class AboutCommand(toga.Command): def __init__(self, app: toga.App, container: toga.Box): async def handler(widget=None): main_window = app.main_window await main_window.dialog(AboutDialog.build()) super().__init__( handler, "About", group=toga.Group.HELP, ) __all__ = ["AboutCommand"]