Skip to content

Instantly share code, notes, and snippets.

@cruor99
Created January 13, 2017 10:35
Show Gist options
  • Save cruor99/c6bcfefca13af1ba28b1d12709caf48f to your computer and use it in GitHub Desktop.
Save cruor99/c6bcfefca13af1ba28b1d12709caf48f to your computer and use it in GitHub Desktop.
from kivy.uix.anchorlayout import AnchorLayout
from kivy.uix.button import Button
from kivy.app import App
class TestApp(App):
def build(self):
layout = AnchorLayout(anchor_x="right", anchor_y="bottom")
btn = Button(text="Hello World", size_hint=(None, None))
layout.add_widget(btn)
return layout
if __name__ == "__main__":
TestApp().run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment