Skip to content

Instantly share code, notes, and snippets.

@kaustubhgupta
Created August 5, 2020 17:36
Show Gist options
  • Save kaustubhgupta/6ee056aea1cdad8b25bfc37dfd5c6f22 to your computer and use it in GitHub Desktop.
Save kaustubhgupta/6ee056aea1cdad8b25bfc37dfd5c6f22 to your computer and use it in GitHub Desktop.
from kivymd.app import MDApp
from kivymd.uix.button import MDRectangleFlatButton
from kivymd.uix.screen import MDScreen
class Main(MDApp):
def build(self):
screen = MDScreen()
btn = MDRectangleFlatButton(text="Hello World",
pos_hint={'center_x': 0.5, 'center_y': 0.5}
)
screen.add_widget(btn)
return screen
Main().run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment