Re: Request Help With Function

2016-04-04 Thread Wildman via Python-list
On Mon, 04 Apr 2016 21:02:53 +0100, MRAB wrote: > On 2016-04-04 20:42, Wildman via Python-list wrote: >> launch_help() >> > .Popen will accept either a string or a list of strings. > > You're giving it a list that contains a string and a list. Yep, that was my foolish mistake. Thanks. > BTW

Re: Request Help With Function

2016-04-04 Thread Wildman via Python-list
On Mon, 04 Apr 2016 13:54:56 -0600, Ian Kelly wrote: > On Mon, Apr 4, 2016 at 1:42 PM, Wildman via Python-list > wrote: >> commandlist = commandlist.split(",") > > commandlist is a list. > >> command = [target, commandlist] >> subprocess.Popen(command) > > T

Re: Request Help With Function

2016-04-04 Thread MRAB
On 2016-04-04 20:42, Wildman via Python-list wrote: I am working on a Linux gui program where I want to be able to click a Help button and open a man page using a viewer. I wrote a search function that can be called several times, if needed, with different arguments. I wrote a test program that

Re: Request Help With Function

2016-04-04 Thread Ian Kelly
On Mon, Apr 4, 2016 at 1:42 PM, Wildman via Python-list wrote: > commandlist = commandlist.split(",") commandlist is a list. > command = [target, commandlist] > subprocess.Popen(command) This is passing a list containing two elements: the first is a string, a

Request Help With Function

2016-04-04 Thread Wildman via Python-list
I am working on a Linux gui program where I want to be able to click a Help button and open a man page using a viewer. I wrote a search function that can be called several times, if needed, with different arguments. I wrote a test program that tries to open the Bash man page in a terminal and will