pexpect, loading an entry field

inq1ltd inq1ltd at inqvista.com
Tue Aug 6 14:03:38 EDT 2013


> pexpect looks simple to use. Please check this example
> http://www.pythonforbeginners.com/systems-programming/how-to-use-the-
pexpect
> -module-in-python/
> > python help;
> > 
> > I am using pexpect to open my program.
> > Can someone tell me how to get data to appear in
> > an entry field.
> > After pexpect opens the my program I have tried to use
> > send, sendline, and write functions to try to put data into
> > the program's entry field.
> > However, the data is going to the terminal window, 
> > the window that is used to initiate the call to pexpect
> > but not to the entry field in the open program. 
> > I would appreciate suggestions.
> > 
> > jol
> > 

Thanks for the response.

I have been there but that site gives me 
the same information that I get from 
noah.org.  I have the pexpect docs and they presume 
that this problem doesn't exist.

None of the information in the NOAH site or the FAQ's 
address this question. 

I'm using suse linux running python 2.7 and pexpect.

The data, when using send() method is going to the terminal window, 
This is the same window that is used to initiate the call to pexpect.

Pexpect opens the program but the send method sends
 data to the terminal window, not the entry field located
in the child spawned by pexpect.

interact works, as does close(), TIMEOUT, EOF, before, after, 
expect_exact and methods.  But the entry field does not 
load.

So my question is;

Why??




> > 
> > 
> > 
> > --
> > http://mail.python.org/mailman/listinfo/python-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130806/e58ccf34/attachment.html>


More information about the Python-list mailing list