Read a file with open command

2006-08-11 Thread jean-jeanot
I can access to a file with the command: file_obj = open ( D:\My documents\Textfile.txt,'r') When I now try to read a file with the following command: file_obj = open (D:\My documents\File.ods,'r') it doesn't function. The extension ods is coming from OpenOffice.org Calc. Why ? jean-jeanot

Re: Read a file with open command

2006-08-11 Thread jean-jeanot
= open (D:/Mes documents/ADB Anna.ods,'r') s = file_obj s.readlines() Jean-Jeanot Jan Svec a écrit : Hi, simply use file_obj = open (D:\My documents\File.ods,'rb') for opening file in binary access mode, which is required for binary files on MS Windows. Honza jean-jeanot wrote: I can

Re: Read a file with open command

2006-08-11 Thread jean-jeanot
in a nutshell by Martelli, etc,etc) Anyway thank you for your answer. jean-Jeanot Sybren Stuvel a écrit : jean-jeanot enlightened us with: I can access to a file with the command: file_obj = open ( D:\My documents\Textfile.txt,'r') Which is the wrong way. Use forward slashes, escape your

Re: Read a file with open command

2006-08-11 Thread jean-jeanot
Sorry, I regret my reaction. Jean-jeanot AlbaClause a écrit : jean-jeanot wrote: Dear Sybrel, I am delighted to know that you have been enlighted through my question. I am aware of my stupidity and I would say of my ignorance.If all Python users were not ignorant I suppose

Re: sum fonction in gadfly

2006-06-25 Thread jean-jeanot
be useful for me to change of DB ? Which one ? Postgresql or another ? Jean Moser Scott David Daniels a écrit : jean-jeanot wrote: After creating the table I create the variables with varAmount = StringVar() Maybe you want to use DoubleVar or IntVar here? With a function def treatment

sum fonction in gadfly

2006-06-24 Thread jean-jeanot
I am writing a prototype program whose aim is to collect bookkeeping transactions in a Database ( Gadfly). After creating the table I create the variables with varAmount = StringVar() I then create labels in Tkinter to ease the input of data. With a function def treatment (): requete = insert