Re: Get filename using filefialog.askfilename

2013-08-10 Thread cheirasacan
Sarcastic what the kcuf ¿?¿?¿? My english is SO bad? Do you know me? I can not understand this paranoia i only was giving thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Get filename using filefialog.askfilename

2013-05-08 Thread cheirasacan
El martes, 7 de mayo de 2013 23:53:32 UTC+2, Terry Jan Reedy escribió: > On 5/7/2013 4:27 PM, cheirasa...@gmail.com wrote: > > > > > file = filedialog.askopenfile ( mode... ) > > > > askopenfile is a convenience function that creates an Open dialog > > object, shows it, gets the name r

Get filename using filefialog.askfilename

2013-05-07 Thread cheirasacan
Well. It's driving me crazy. So simple I use: file = filedialog.askopenfile ( mode... ) to open a file with an open dialog box, OK. Made it. How i get the name of the opened file? i do : print(file) the output is: <..name="file.doc"...mode=..encoding.. > How can i g

Re: Why sfml does not play the file inside a function in this python code?

2013-05-07 Thread cheirasacan
El martes, 7 de mayo de 2013 16:57:59 UTC+2, MRAB escribió: > On 07/05/2013 14:56, cheirasa...@gmail.com wrote: > > > El martes, 7 de mayo de 2013 12:53:25 UTC+2, MRAB escribió: > > >> On 07/05/2013 10:27, cheirasa...@gmail.com wrote: > > >> > from tkinter import * > > >> > import sfml > > >

Re: Why sfml does not play the file inside a function in this python code?

2013-05-07 Thread cheirasacan
El martes, 7 de mayo de 2013 12:53:25 UTC+2, MRAB escribió: > On 07/05/2013 10:27, cheirasa...@gmail.com wrote: > > > from tkinter import * > > > import sfml > > > > > > > > > window = Tk() > > > window.minsize( 640, 480 ) > > > > > > > > > def sonido(): > > > file = sfml.Music.from

Why sfml does not play the file inside a function in this python code?

2013-05-07 Thread cheirasacan
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, s