Skip to content

Instantly share code, notes, and snippets.

@lipi
Created April 24, 2016 01:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lipi/4381f5feb9b39a20a074c18537e57fb3 to your computer and use it in GitHub Desktop.
Save lipi/4381f5feb9b39a20a074c18537e57fb3 to your computer and use it in GitHub Desktop.
import kivy
kivy.require('1.9.1')
from kivy.app import App
from kivy.uix.label import Label
from PIL import Image as PilImage
class MyApp(App):
def build(self):
img = PilImage.open('kivy-icon-64.png')
img = img.transpose(PilImage.FLIP_TOP_BOTTOM)
return Label(text='Hello world')
if __name__ == '__main__':
MyApp().run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment