Re: Problem getting a file pathname with tkFileDialog

2006-11-09 Thread Neil Cerutti
On 2006-11-09, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > you could also use encode("iso-8859-1") to nterpret just the > printed name such as: print myfilename.encode("iso-8859-1") > > and by the way if you wanted the file NAME you could have used > openfilename() instead of openfile();-)

Re: Problem getting a file pathname with tkFileDialog

2006-11-09 Thread jmdeschamps
Tim Daneliuk wrote: > Sefyroth wrote: > > Thanks, > > > > but I get this error when I try this. > > > > UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in > > position 12: ordinal not in range(128) > > > > I had encountered it with the askdirectory method as well. Is there an > >

Re: Problem getting a file pathname with tkFileDialog

2006-11-09 Thread Eric Brunel
On Wed, 08 Nov 2006 21:59:38 +0100, Tim Daneliuk <[EMAIL PROTECTED]> wrote: > Sefyroth wrote: >> Thanks, >> but I get this error when I try this. >> UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in >> position 12: ordinal not in range(128) >> I had encountered it with the

Re: Problem getting a file pathname with tkFileDialog

2006-11-09 Thread Eric Brunel
On Wed, 08 Nov 2006 20:01:08 +0100, <[EMAIL PROTECTED]> wrote: > Hello, > I am working on a school project that requires me to get the path of a > filename for future treatment. > I've tried getting a file with tkFileDialog.askopenfile. > > > > import t

Re: Problem getting a file pathname with tkFileDialog

2006-11-08 Thread Tim Daneliuk
Sefyroth wrote: > Thank you!!! I have had problems with other stuff because of this > (mainly py2exe!) > > It did the job! I thank you a lot. My pleasure. > > Just wondering though, > > D:/Travaux/5ème session/B51 - Dev. de ^ > Systèmes/Workspace/LMAOSoft/Controleur.py ^

Re: Problem getting a file pathname with tkFileDialog

2006-11-08 Thread Sefyroth
Thank you!!! I have had problems with other stuff because of this (mainly py2exe!) It did the job! I thank you a lot. Just wondering though, D:/Travaux/5ème session/B51 - Dev. de Systèmes/Workspace/LMAOSoft/Controleur.py That's my filepath, what is not ASCII in there? è Just checked and it'

Re: Problem getting a file pathname with tkFileDialog

2006-11-08 Thread Tim Daneliuk
Sefyroth wrote: > Thanks, > > but I get this error when I try this. > > UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in > position 12: ordinal not in range(128) > > I had encountered it with the askdirectory method as well. Is there an > easy way to bypass this? > > Thanks

Re: Problem getting a file pathname with tkFileDialog

2006-11-08 Thread Sefyroth
Thanks, but I get this error when I try this. UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in position 12: ordinal not in range(128) I had encountered it with the askdirectory method as well. Is there an easy way to bypass this? Thanks again Tim Daneliuk wrote: > [EMAIL P

Re: Problem getting a file pathname with tkFileDialog

2006-11-08 Thread Tim Daneliuk
[EMAIL PROTECTED] wrote: > Hello, > I am working on a school project that requires me to get the path of a > filename for future treatment. > I've tried getting a file with tkFileDialog.askopenfile. > > > > import tkFileDialog > file = tkFileDialog.ask

Problem getting a file pathname with tkFileDialog

2006-11-08 Thread cdroulers
Hello, I am working on a school project that requires me to get the path of a filename for future treatment. I've tried getting a file with tkFileDialog.askopenfile. import tkFileDialog file = tkFileDialog.askopenfile() print file *