Sideband/sbapp/kivymd/toast/__init__.py

16 lines
329 B
Python
Raw Normal View History

2022-07-07 22:16:10 +02:00
__all__ = ("toast",)
from kivy.utils import platform
use_native_toast = False
2022-07-07 22:16:10 +02:00
if platform == "android":
if use_native_toast:
try: from .androidtoast import toast
except ModuleNotFoundError: from .kivytoast import toast
else:
2022-07-07 22:16:10 +02:00
from .kivytoast import toast
2022-07-07 22:16:10 +02:00
else:
from .kivytoast import toast