Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'memory.': 0.05; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'terry': 0.09; 'subject:python': 0.11; 'file,': 0.15; 'parser.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'tables,': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'shell': 0.18; 'machine': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'possibility': 0.27; 'format,': 0.27; 'fixed': 0.28; 'header:X-Complaints-To:1': 0.28; 'lines': 0.28; 'run': 0.28; 'writes:': 0.29; 'convert': 0.29; 'thursday,': 0.30; 'window': 0.30; 'december': 0.32; 'could': 0.32; 'info': 0.32; 'extract': 0.33; 'text,': 0.33; 'to:addr:python-list': 0.33; 'text': 0.34; 'open': 0.35; 'pm,': 0.35; 'table': 0.35; 'received:org': 0.36; 'but': 0.36; 'subject:with': 0.36; 'should': 0.36; 'display': 0.36; 'quite': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'john': 0.60; 'customer': 0.61; 'content,': 0.65; 'boxes.': 0.84; 'received:fios.verizon.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: mini browser with python Date: Thu, 06 Dec 2012 15:15:42 -0500 References: <2752523.MlzgZ4bAjj@mach-114-20> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-251-66.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 In-Reply-To: <2752523.MlzgZ4bAjj@mach-114-20> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1354824966 news.xs4all.nl 6990 [2001:888:2000:d::a6]:52003 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:34427 On 12/6/2012 1:15 PM, inq1ltd wrote: > On Thursday, December 06, 2012 05:19:38 PM John Gordon wrote: > > > In inq1ltd > writes: > > > Right now I need some way to display > > > 15 to 20 lines of html in its own window or > > > as part of my screen. > > Could you open a shell window and run a text web browser such as Lynx? > That is a possibility but then every machine > will have to have Lynx. That is not quite > what the customer wants. > Also, I can download the site to a file, Or you can download and work with it in memory. > convert the data to text, Using existing html parser. > then display it in a Text widget. The complication in displaying html is with placing images and other boxed content, including tables, and flowing text around the boxes. If the html you want to work with is simple and has a somewhat fixed format, you should be able to extract all the info as either text or a table and be able to format and place it how you want. -- Terry Jan Reedy