kivymd.snackbar module¶
Snackbar¶
API¶
-
class
kivymd.snackbar.Snackbar(text, button_text=None, button_callback=None, duration=None)¶ Bases:
kivy._event.EventDispatcherA Material Design Snackbar
-
text¶ The text that will appear in the Snackbar.
textis aStringPropertyand defaults to ”.
The text that will appear in the Snackbar’s button.
Note
If this variable is None, the Snackbar will have no button.
button_textis aStringPropertyand defaults to None.
The callback that will be triggered when the Snackbar’s button is pressed.
Note
If this variable is None, the Snackbar will have no button.
button_callbackis aObjectPropertyand defaults to None.
-
duration¶ The amount of time that the Snackbar will stay on screen for.
durationis aNumericPropertyand defaults to 3.
-
show()¶ Show the Snackbar
-