Usuario:


Acciones

Storyboard

>Modelo

ID:(1807, 0)



MDIconButton

Descripción

>Top


MDFlatButton



Format of MDIconButton

MDIconButton:
    icon: 'data/logo/kivy-icon-256.png'
    theme_text_color: 'Custom'
    text_color: app.theme_cls.primary_color


No special library, no append of widget.

Example in code

from kivy.lang import Builder

from kivymd.app import MDApp

KV = '''
MDScreen:

    MDIconButton:
        icon: 'language-python'
        pos_hint: {'center_x': .5, 'center_y': .5}
'''

class MainApp(MDApp):
    def build(self):
        return Builder.load_string(KV)


MainApp().run()

Source: anaconda3/Lib/site-packages/kivymd/uix/button.py

ID:(13914, 0)



MDFlatButton

Descripción

>Top


MDFlatButton



Format of MDFlatButton

MDFlatButton:
    text: 'MDFLATBUTTON'
    theme_text_color: 'Custom'
    text_color: 0, 0, 1, 1


No special library, no append of widget.

Example in code

from kivy.lang import Builder

from kivymd.app import MDApp

KV = '''
MDScreen:

    MDFlatButton:
        text: 'MDFLATBUTTON'
        theme_text_color: 'Custom'
        text_color: 0, 0, 1, 1
        pos_hint: {'center_x': .5, 'center_y': .5}
'''

class MainApp(MDApp):
    def build(self):
        return Builder.load_string(KV)


MainApp().run()

Source: anaconda3/Lib/site-packages/kivymd/uix/button.py

ID:(13937, 0)



MDRaisedButton

Descripción

>Top


MDRaisedButton



Format of MDRaisedButton:

MDRaisedButton:
    text: 'MDRAISEDBUTTON'
    md_bg_color: 1, 0, 1, 1


No special library, no append of widget.

Example in code

from kivy.lang import Builder

from kivymd.app import MDApp

KV = '''
MDScreen:

    MDRaisedButton:
        text: 'MDRAISEDBUTTON'
        md_bg_color: 1, 0, 1, 1
        pos_hint: {'center_x': .5, 'center_y': .5}
'''

class MainApp(MDApp):
    def build(self):
        return Builder.load_string(KV)


MainApp().run()

Source: anaconda3/Lib/site-packages/kivymd/uix/button.py

ID:(13938, 0)



MDFloatingActionButton

Descripción

>Top


MDFloatingActionButton



Format of MDFloatingActionButton

MDFloatingActionButton:
    icon: 'android'
    md_bg_color: app.theme_cls.primary_color
    elevation_normal: 12


No special library, no append of widget.

Example in code

from kivy.lang import Builder

from kivymd.app import MDApp

KV = '''
MDScreen:

    MDFloatingActionButton:
        icon: 'language-python'
        pos_hint: {'center_x': .5, 'center_y': .5}
'''

class MainApp(MDApp):
    def build(self):
        return Builder.load_string(KV)


MainApp().run()

Source: anaconda3/Lib/site-packages/kivymd/uix/button.py

ID:(13936, 0)



MDRectangleFlatButton

Descripción

>Top


MDRectangleFlatButton



Format for MDRectangleFlatButton

MDRectangleFlatButton:
    text: 'MDRECTANGLEFLATBUTTON'
    theme_text_color: 'Custom'
    text_color: 1, 0, 0, 1
    line_color: 0, 0, 1, 1


No special library, no append of widget.

Example in code

from kivy.lang import Builder

from kivymd.app import MDApp

KV = '''
MDScreen:

    MDRectangleFlatButton:
        text: 'MDRECTANGLEFLATBUTTON'
        theme_text_color: 'Custom'
        text_color: 1, 0, 0, 1
        line_color: 0, 0, 1, 1
        pos_hint: {'center_x': .5, 'center_y': .5}
'''

class MainApp(MDApp):
    def build(self):
        return Builder.load_string(KV)


MainApp().run()

Source: anaconda3/Lib/site-packages/kivymd/uix/button.py

ID:(13915, 0)



MDRectangleFlatIconButton

Descripción

>Top


MDRectangleFlatIconButton



Format for MDRectangleFlatIconButton

MDRectangleFlatIconButton:
    icon: 'android'
    text: 'MDRECTANGLEFLATICONBUTTON'
    theme_text_color: 'Custom'
    text_color: 0, 0, 1, 1
    line_color: 1, 0, 1, 1
    icon_color: 1, 0, 0, 1


No special library, no append of widget.

Example in code

from kivy.lang import Builder

from kivymd.app import MDApp

KV = '''
MDScreen:

    MDRectangleFlatIconButton:
        icon: 'android'
        text: 'MDRECTANGLEFLATICONBUTTON'
        theme_text_color: 'Custom'
        text_color: 0, 0, 1, 1
        line_color: 1, 0, 1, 1
        icon_color: 1, 0, 0, 1
        pos_hint: {'center_x': .5, 'center_y': .5}
'''

class MainApp(MDApp):
    def build(self):
        return Builder.load_string(KV)


MainApp().run()

Source: anaconda3/Lib/site-packages/kivymd/uix/button.py

ID:(13939, 0)



MDRoundFlatButton

Descripción

>Top


MDRoundFlatButton



Format for MDRoundFlatButton

MDRoundFlatButton:
    text: 'MDROUNDFLATBUTTON'
    text_color: 0, 1, 0, 1


No special library, no append of widget.

Example in code

from kivy.lang import Builder

from kivymd.app import MDApp

KV = '''
MDScreen:

    MDRoundFlatButton:
        text: 'MDROUNDFLATBUTTON'
        text_color: 0, 1, 0, 1
        pos_hint: {'center_x': .5, 'center_y': .5}
'''

class MainApp(MDApp):
    def build(self):
        return Builder.load_string(KV)


MainApp().run()

Source: anaconda3/Lib/site-packages/kivymd/uix/button.py

ID:(13940, 0)



MDRoundFlatIconButton

Descripción

>Top


MDRoundFlatIconButton



Format for MDRoundFlatIconButton

MDRoundFlatIconButton:
    icon: 'android'
    text: 'MDROUNDFLATICONBUTTON'


No special library, no append of widget.

Example in code

from kivy.lang import Builder

from kivymd.app import MDApp

KV = '''
MDScreen:

    MDRoundFlatIconButton:
        icon: 'android'
        text: 'MDROUNDFLATICONBUTTON'
        pos_hint: {'center_x': .5, 'center_y': .5}
'''

class MainApp(MDApp):
    def build(self):
        return Builder.load_string(KV)


MainApp().run()

Source: anaconda3/Lib/site-packages/kivymd/uix/button.py

ID:(13941, 0)



MDFillRoundFlatButton

Descripción

>Top


MDFillRoundFlatButton



Format for MDFillRoundFlatButton

MDFillRoundFlatButton:
    text: 'MDROUNDFLATBUTTON'
    text_color: 0, 1, 0, 1


No special library, no append of widget.

Example in code

from kivy.lang import Builder

from kivymd.app import MDApp

KV = '''
MDScreen:

    MDFillRoundFlatButton:
        text: 'MDROUNDFLATBUTTON'
        text_color: 0, 1, 0, 1
        pos_hint: {'center_x': .5, 'center_y': .5}
'''

class MainApp(MDApp):
    def build(self):
        return Builder.load_string(KV)


MainApp().run()

Source: anaconda3/Lib/site-packages/kivymd/uix/button.py

ID:(13942, 0)



MDFillRoundFlatIconButton

Descripción

>Top


MDFillRoundFlatIconButton



Format for MDFillRoundFlatIconButton

MDFillRoundFlatIconButton:
    icon: 'android'
    text: 'MDROUNDFLATICONBUTTON'


No special library, no append of widget.

Example in code

from kivy.lang import Builder

from kivymd.app import MDApp

KV = '''
MDScreen:

    MDFillRoundFlatIconButton:
        icon: 'android'
        text: 'MDROUNDFLATICONBUTTON'
        pos_hint: {'center_x': .5, 'center_y': .5}
'''

class MainApp(MDApp):
    def build(self):
        return Builder.load_string(KV)


MainApp().run()

Source: anaconda3/Lib/site-packages/kivymd/uix/button.py

ID:(13943, 0)



MDTextButton

Descripción

>Top


MDTextButton



Format of MDTextButton

MDTextButton:
    text: 'MDTEXTBUTTON'
    custom_color: 0, 1, 0, 1


No special library, no append of widget.

Example in code

from kivy.lang import Builder

from kivymd.app import MDApp

KV = '''
MDScreen:

    MDTextButton:
        text: 'MDTEXTBUTTON'
        custom_color: 0, 1, 0, 1
        pos_hint: {'center_x': .5, 'center_y': .5}
'''

class MainApp(MDApp):
    def build(self):
        return Builder.load_string(KV)


MainApp().run()

Source: anaconda3/Lib/site-packages/kivymd/uix/button.py

ID:(13944, 0)



MDFloatingActionButtonSpeedDial

Descripción

>Top


MDFloatingActionButtonSpeedDial



Format of MDFloatingActionButtonSpeedDial

MDFloatingActionButtonSpeedDial:
    data: app.data
    root_button_anim: True


No special library, no append of widget.

Example in code

from kivy.lang import Builder

from kivymd.app import MDApp

KV = '''
MDScreen:

    MDFloatingActionButtonSpeedDial:
        data: app.data
        root_button_anim: True
'''

class MainApp(MDApp):

    data = {
        'Python': 'language-python',
        'PHP': 'language-php',
        'C++': 'language-cpp',
    }

    def build(self):
        return Builder.load_string(KV)


MainApp().run()

Source: anaconda3/Lib/site-packages/kivymd/uix/button.py

ID:(13945, 0)