Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #52057

Re: pexpect, loading an entry field

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <lakshmipathi.g@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.044
X-Spam-Evidence '*H*': 0.91; '*S*': 0.00; 'foss': 0.09; 'suggestions.': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'help;': 0.16; 'send,': 0.16; 'wrote:': 0.18; 'example': 0.22; 'aug': 0.22; 'cc:addr:python.org': 0.22; 'cheers,': 0.24; 'looks': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In- Reply-To:1': 0.27; 'tried': 0.27; 'appear': 0.29; '----': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'initiate': 0.31; 'open': 0.33; 'url:python': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'url:listinfo': 0.36; 'entry': 0.36; 'url:org': 0.36; 'window': 0.38; 'pm,': 0.38; 'use.': 0.39; 'url:mail': 0.40; 'how': 0.40; 'tell': 0.60; 'field.': 0.61; 'simple': 0.61; 'field': 0.63; 'opens': 0.91; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=MSBL3LyLB6dzlplBCocsUTWBh+PhmTn0r9Or1ziiWpc=; b=srtt3rGZBtfWTJYdtl4e1j3J54m/mTQK1jh7lzv2gYRcWDGP1BzaNV+mkwq5cCsQhk Tg9XTfZhAq1HArS/7tgD6fsENtt8cM8z664Gx+AGkb8+GXTWlMKhFlwYCWYvVnLRWvNb IG4yqOIp6J1gBH3u0Z4fcDsAu+b1rAEOGVCIaJ0ZXQQ9GQP9L35R+Pk8MDQbRpQPa0NG TAvzNkNpspwlin3w/Bi6NK0Ou1uo9ej9MoA2Rzc9aPJKMHI3y0KP6xpI+WkEBZjy3HY9 7YbckkA3yU/VAjzp702IFMea4wWC7rLHTud03hrBlMVYLYAhbPHQaz0M/4mf3dIQeWxi YcYw==
X-Received by 10.49.82.14 with SMTP id e14mr2980491qey.26.1375806915869; Tue, 06 Aug 2013 09:35:15 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <4559802.M7tbXMqQd4@mach-114-20>
References <ktqeho$f5i$1@news.albasani.net> <520100F9.4010805@gmail.com> <CAPTjJmpEPj=e9fkgpTuEW1PWq7yE+7Rg-VENSOeLGc=teZReRw@mail.gmail.com> <4559802.M7tbXMqQd4@mach-114-20>
From "Lakshmipathi.G" <lakshmipathi.g@gmail.com>
Date Tue, 6 Aug 2013 22:04:54 +0530
Subject Re: pexpect, loading an entry field
To inq1ltd <inq1ltd@inqvista.com>
Content-Type text/plain; charset=ISO-8859-1
X-Mailman-Approved-At Tue, 06 Aug 2013 18:38:24 +0200
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.265.1375807105.1251.python-list@python.org> (permalink)
Lines 49
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1375807105 news.xs4all.nl 15946 [2001:888:2000:d::a6]:53532
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:52057

Show key headers only | View raw


pexpect looks simple to use. Please check this example
http://www.pythonforbeginners.com/systems-programming/how-to-use-the-pexpect-module-in-python/

-- 
----
Cheers,
Lakshmipathi.G
FOSS Programmer.
www.giis.co.in

On Tue, Aug 6, 2013 at 8:35 PM, inq1ltd <inq1ltd@inqvista.com> wrote:
> 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
>
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Class hierarchy problem BrJohan <brjohan@gmail.com> - 2013-08-06 11:10 +0200
  Re: Class hierarchy problem Chris Angelico <rosuav@gmail.com> - 2013-08-06 10:30 +0100
    Re: Class hierarchy problem Chris Angelico <rosuav@gmail.com> - 2013-08-06 15:02 +0100
      Re: Class hierarchy problem BrJohan <brjohan@gmail.com> - 2013-08-06 17:36 +0200
        Re: Class hierarchy problem Joe Junior <joe.fbs.junior@gmail.com> - 2013-08-06 13:23 -0300
        Re: Class hierarchy problem Jordi Riera <kender.jr@gmail.com> - 2013-08-06 18:13 +0200
        Re: Class hierarchy problem Chris Angelico <rosuav@gmail.com> - 2013-08-06 18:12 +0100
        Re: Class hierarchy problem Terry Reedy <tjreedy@udel.edu> - 2013-08-06 19:13 -0400
        Re: Class hierarchy problem Ben Finney <ben+python@benfinney.id.au> - 2013-08-07 11:58 +1000
  Re: Class hierarchy problem Peter Otten <__peter__@web.de> - 2013-08-06 11:34 +0200
  Re: Class hierarchy problem Steven D'Aprano <steve@pearwood.info> - 2013-08-06 09:36 +0000
  pexpect,  loading an entry field inq1ltd <inq1ltd@inqvista.com> - 2013-08-06 11:05 -0400
  Re: pexpect, loading an entry field "Lakshmipathi.G" <lakshmipathi.g@gmail.com> - 2013-08-06 22:04 +0530
  Re: pexpect, loading an entry field inq1ltd <inq1ltd@inqvista.com> - 2013-08-06 14:03 -0400
  Re: pexpect, loading an entry field "Lakshmipathi.G" <lakshmipathi.g@gmail.com> - 2013-08-07 13:40 +0530

csiph-web