Skip to content

Instantly share code, notes, and snippets.

@winstonwolff
winstonwolff / gist:9107494
Last active August 29, 2015 13:56
kivy 1.8 playing ogg
def play(sound_fname, loop=False):
if sound_fname is None:
return
sound = SoundLoader.load(sound_fname)
sound.loop = loop
if sound:
sound.play()
return sound
new_sound_fname = 'audio/back_menu.ogg'
I'm trying to layout a widget like this:
----------------------------
| [IMAGE] |
|[.....a label here.......]|
----------------------------
Where the image is centered at the top, and the label is centered at the bottom.
Here's some code:
-----------------------------
from kivy.app import App