Re: Subprocess and /usr/bin/dialog

2008-03-22 Thread harrelson
Thanks Grant, that does it! I knew it had to be something simple like that and it was frustrating not to be able to find it. I do prefer the tuple. Thanks again. culley -- http://mail.python.org/mailman/listinfo/python-list

Re: Subprocess and /usr/bin/dialog

2008-03-22 Thread Grant Edwards
On 2008-03-22, harrelson <[EMAIL PROTECTED]> wrote: >>> proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, >>> stderr=subprocess.STDOUT) >>> stderr_value = proc.communicate()[0] >>> print stderr_value >> dialog displays the widget on stdout. You've connected stdout >> to a pip

Re: Subprocess and /usr/bin/dialog

2008-03-22 Thread harrelson
> > [It would be helpful if you didn't wrap sample code when you > post it.] > > dialog displays the widget on stdout. You've connected stdout > to a pipe, so you're not going to see anything displayed unless > you read data from the stdout pipe and write it to the terminal. Also... if I put the

Re: Subprocess and /usr/bin/dialog

2008-03-22 Thread harrelson
On Mar 21, 3:59 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2008-03-21, harrelson <[EMAIL PROTECTED]> wrote: > > > I am trying to get the below code to work and can't quite make things > > happen. This is with Python 2.5.1. Dialog is doing something odd... > > I have tinkered with different

Re: Subprocess and /usr/bin/dialog

2008-03-21 Thread Grant Edwards
On 2008-03-21, harrelson <[EMAIL PROTECTED]> wrote: > I am trying to get the below code to work and can't quite make things > happen. This is with Python 2.5.1. Dialog is doing something odd... > I have tinkered with different combinations and I can't get the dialog > to show properly-- it does s

Subprocess and /usr/bin/dialog

2008-03-21 Thread harrelson
I am trying to get the below code to work and can't quite make things happen. This is with Python 2.5.1. Dialog is doing something odd... I have tinkered with different combinations and I can't get the dialog to show properly-- it does show properly directly in the shell. Any hints? import subp