Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed20.multikabel.net!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.077 X-Spam-Evidence: '*H*': 0.85; '*S*': 0.00; 'command.': 0.09; 'to:name:python mailing list': 0.09; 'subject:application': 0.15; 'me"': 0.16; 'retrieves': 0.16; 'subject:PyQt': 0.16; 'workaround': 0.16; 'header:In-Reply-To:1': 0.22; 'thus': 0.23; 'mode': 0.25; 'separate': 0.28; 'message-id:@mail.gmail.com': 0.28; 'forgot': 0.28; 'received:209.85.210.46': 0.30; 'received :mail-pz0-f46.google.com': 0.30; "didn't": 0.30; 'thanks': 0.32; 'to:addr:python-list': 0.33; 'hi,': 0.34; 'elegant': 0.34; 'external': 0.35; 'file': 0.35; 'but': 0.37; 'received:google.com': 0.37; 'could': 0.37; 'received:209.85': 0.38; 'created': 0.38; 'put': 0.38; 'i.e.': 0.38; 'that.': 0.39; "i'd": 0.39; 'received:209': 0.39; 'subject:: ': 0.39; 'to:addr:python.org': 0.40; 'more': 0.61; 'your': 0.61; 'click': 0.79; 'interaction.': 0.84; 'click.': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=+OyZRQsa+UFSwKF+r4bjvqM8FCHFk4g1MzjbTToYFrg=; b=hAJGAdOLOmAmuX8q6mwQEi0qBtqzBVsFW8Acg151nXHz+1LP4MZOTpeodhIiPt8Tur v5Ii4gnI9iobs2Vo99FgPyXZTbzgawaC+NeLM66OqlodvmQhtbOuF+zum8D4en1kIUQC TMmImNekHp/ihWLxf1E/ZafsTYGy0l7Q0Ssjw= MIME-Version: 1.0 In-Reply-To: <4F233660.3040908@optimum.net> References: <4F233660.3040908@optimum.net> From: Jabba Laci Date: Sat, 28 Jan 2012 12:51:36 +0100 Subject: Re: calling a simple PyQt application more than once To: Python mailing list Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1327751519 news.xs4all.nl 6898 [2001:888:2000:d::a6]:46634 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:19544 > You can click the "Press me" button as many times as you wish; it > retrieves and displays/prints the same HTML file on each click. Hi, Thanks for your reply. I forgot to mention that my first solution created a headless browser, i.e. it didn't create any GUI. I would like to keep it that way, thus I could scrape (AJAX-powered) webpages in batch mode without any user interaction. One workaround is to put the scraper in a separate file and call it as an external command. But I'd like a more elegant solution that that. Laszlo