Benützer:


Aktionen

Storyboard

>Modell

ID:(1807, 0)



MDIconButton

Beschreibung

>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

Beschreibung

>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

Beschreibung

>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

Beschreibung

>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

Beschreibung

>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

Beschreibung

>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

Beschreibung

>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

Beschreibung

>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

Beschreibung

>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

Beschreibung

>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

Beschreibung

>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

Beschreibung

>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)