This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kivy.app import App | |
from kivy.uix.label import Label | |
class Main(App): | |
def build(self): | |
return Label(text='Hello World') | |
Main().run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kivymd.app import MDApp | |
from kivy.lang import Builder | |
class Main(MDApp): | |
def build(self): | |
return Builder.load_file("label.kv") | |
Main().run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Screen: | |
MDLabel: | |
text: "[b]Thanks for reading my Medium article![/b]" | |
halign: "center" | |
font_style: "H4" | |
markup: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kivymd.app import MDApp | |
from kivymd.uix.screen import Screen | |
from kivymd.uix.label import MDLabel | |
class Main(MDApp): | |
def build(self): | |
screen = Screen() | |
label = MDLabel(text="[b]Thanks for reading my Medium article![/b]", | |
halign='center', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kivymd.app import MDApp | |
from kivy.lang import Builder | |
kv = """ | |
Screen: | |
MDTextField: | |
hint_text: 'Enter you password' | |
helper_text: 'Forgot your password?' | |
helper_text_mode: "on_focus" | |
pos_hint: {'center_x': 0.5, 'center_y': 0.5} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kivymd.app import MDApp | |
from kivy.lang import Builder | |
from kivy.properties import ObjectProperty | |
kv = """ | |
Screen: | |
in_class: text | |
MDLabel: | |
text: 'Basic Authentication App' | |
font_style: 'H2' |
OlderNewer