Skip to content

Instantly share code, notes, and snippets.

@rohman
Created April 3, 2013 11:50
Show Gist options
  • Save rohman/5300539 to your computer and use it in GitHub Desktop.
Save rohman/5300539 to your computer and use it in GitHub Desktop.
import kivy
from kivy.app import App
from kivy.uix.scatter import Scatter
from kivy.uix.image import Image
from os.path import join
class ScatterDemo(App):
def build(self):
scatter = Scatter()
image = Image(source= join(kivy.kivy_data_dir, 'logo', 'kivy-icon-256.png'))
scatter.add_widget(image)
return scatter
if __name__ == '__main__':
ScatterDemo().run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment