Skip to content

Instantly share code, notes, and snippets.

@kived
Created June 12, 2015 15:05
Show Gist options
  • Save kived/89a99c4ebb9dfd0b01cc to your computer and use it in GitHub Desktop.
Save kived/89a99c4ebb9dfd0b01cc to your computer and use it in GitHub Desktop.
Kivy: opening a Popup
import kivy
kivy.require('1.9.0')
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.popup import Popup
root = Builder.load_string('''
Button
''')
class TestApp(App):
def build(self):
# doesn't work
Popup(title='hi').open()
return root
def on_start(self):
# does work
#Popup(title='hi').open()
return
if __name__ == '__main__':
TestApp().run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment