This file contains hidden or 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
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' |
This file contains hidden or 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
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 |