Re: Basic file operation questions

2005-02-02 Thread David Douard
David Douard wrote: > Marcel van den Dungen wrote: > >> alex wrote: >>> Hi, >>> >>> I am a beginner with python and here is my first question: >>> How can I read the contents of a file using a loop or something? I open >>> the file wit

Re: Basic file operation questions

2005-02-02 Thread David Douard
Marcel van den Dungen wrote: > alex wrote: >> Hi, >> >> I am a beginner with python and here is my first question: >> How can I read the contents of a file using a loop or something? I open >> the file with file=open(filename, 'r') and what to do then? Can I use >> something like >> >> for xxx i

Re: continuous plotting with Tkinter

2005-02-02 Thread David Douard
Martin Blume wrote: > I have a number-crunching application that spits out > a lot of numbers. Now I'd like to pipe this into a python > app and plot them using Tkinter, such as: > $ number_cruncher | myplot.py > But with Tkinter once I call Tkinter's mainloop() I > give up my control of the app

Re: Redirecting stdout/err under win32 platform

2005-02-01 Thread David Douard
yaipa wrote: > David, > > Googling comp.lang.python /w this string "stderr win32" yielded 109 > results. > So I think if you poke around a bit you will find your answer in the > archives. > > Sorry for no direct help tonight... > > Cheers, > > --Alan

Redirecting stdout/err under win32 platform

2005-01-29 Thread David Douard
Hi everybody, let me explain by problem: I am working on an application which consists in a C++ dll (numeric computations) and a Python IHM (Python/Tk), which must run under Linux and win32. My problem is the C++ lib does write stuffs on its stdout, and I would like to print those messages in a T

Re: Independence of programs!

2005-01-29 Thread David Douard
blade8472 wrote: > > Hey all, hope all is fine, I have a question; I am new in python > programming, I write the programs to a text doc then I run them with > the interpreter, so I wanna know whether I can save the programs as > exe so that they can be run independently on other PCs without the >