FunkyJuiceRecipes/src/funkyjuicerecipes/ui/commands/about.py

22 lines
468 B
Python
Raw Normal View History

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"]