Created
April 3, 2013 11:50
-
-
Save rohman/5300539 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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