from tkinter import *
import sfml

window = Tk()
window.minsize( 640, 480 )


def sonido():
    file = sfml.Music.from_file('poco.ogg')
    file.play()


test = Button ( window, text = 'Sound test', command=sonido )
test.place ( x = 10, y = 60)

window.mainloop()




Using Windows 7, Python 3.3, sfml 1.3.0 library, the file it is played if i put 
it out of the function. ¿ what am i doing wrong ? Thanks.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to