Re: [Tutor] reassigning/replacing sys.stdout

2007-01-30 Thread Kent Johnson
Tony Cappellini wrote: > That would be ideal- but I'm using 2.4 now, and the people using the app > would also have to upgrade to 2.5. > I don't like upgrading unless there's a pressing need. subprocess was added in Python 2.4. Older Python versions have similar functionality in os.popen* and po

Re: [Tutor] reassigning/replacing sys.stdout

2007-01-30 Thread Tony Cappellini
That would be ideal- but I'm using 2.4 now, and the people using the app would also have to upgrade to 2.5. I don't like upgrading unless there's a pressing need. On 1/30/07, Danny Yoo <[EMAIL PROTECTED]> wrote: > The author of the cmd line app suggested I temporarily replace > sys.stdout'with

Re: [Tutor] reassigning/replacing sys.stdout

2007-01-30 Thread Danny Yoo
> The author of the cmd line app suggested I temporarily replace > sys.stdout'with a file descriptor class that can write directly to the > gui'. The author is now out of communications for a few weeks, so I > can't elaborate. It sounds like the subprocess module might be very useful here:

Re: [Tutor] reassigning/replacing sys.stdout

2007-01-30 Thread Alan Gauld
"Tony Cappellini" <[EMAIL PROTECTED]> wrote > The author of the cmd line app suggested I temporarily replace > sys.stdout'with a file descriptor class that can write directly to > the > gui'. I'm not sure that would be such a great idea since the command line tool knows nothing about the GUI -

Re: [Tutor] reassigning/replacing sys.stdout

2007-01-30 Thread Tony Cappellini
got it -thanks On 1/30/07, Luke Paireepinart <[EMAIL PROTECTED]> wrote: Tony Cappellini wrote: > > I'm writing a python gui app that will call a python cmd line app. The > gui will take users input, pass it to the cmd line app, then display > the cmd app program output. The idea is to give user

Re: [Tutor] reassigning/replacing sys.stdout

2007-01-30 Thread Luke Paireepinart
Tony Cappellini wrote: > > I'm writing a python gui app that will call a python cmd line app. The > gui will take users input, pass it to the cmd line app, then display > the cmd app program output. The idea is to give users who aren't > comfortable with the cmd line a way to run the program, wi

[Tutor] reassigning/replacing sys.stdout

2007-01-30 Thread Tony Cappellini
I'm writing a python gui app that will call a python cmd line app. The gui will take users input, pass it to the cmd line app, then display the cmd app program output. The idea is to give users who aren't comfortable with the cmd line a way to run the program, without having to open a shell window