-
-
Notifications
You must be signed in to change notification settings - Fork 674
Components Floating Action Button Speed Dial
KivyMD edited this page Mar 3, 2020
·
2 revisions
from kivy.lang import Builder
from kivymd.app import MDApp
KV = """
MDFloatingActionButtonSpeedDial:
data: app.data
rotation_root_button: True
callback: app.callback
"""
class Example(MDApp):
data = {
"language-python": "Python",
"language-php": "PHP",
"language-cpp": "C++",
}
def callback(self, instance):
print(instance.icon)
def build(self):
return Builder.load_string(KV)
Example().run()