Skip to content

Components Floating Action Button Speed Dial

KivyMD edited this page Mar 3, 2020 · 2 revisions

speeddial.gif

Example of using MDFloatingActionButtonSpeedDial:

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()
Clone this wiki locally