Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!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.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'subject:Python': 0.04; 'manipulate': 0.09; 'am,': 0.14; 'wrote:': 0.14; 'subject:Programming': 0.16; 'subject:Thread': 0.16; 'threading': 0.16; 'url:riverbankcomputing': 0.16; 'header:In-Reply-To:1': 0.22; 'thu,': 0.22; 'received:209.85.214.174': 0.23; 'received :mail-iw0-f174.google.com': 0.23; 'objects': 0.24; 'chris': 0.27; 'message-id:@mail.gmail.com': 0.28; 'to:addr:python-list': 0.32; 'url:docs': 0.33; 'created': 0.33; 'using': 0.34; 'there': 0.35; 'url:uk': 0.36; 'case,': 0.36; 'event': 0.37; 'received:209.85': 0.37; 'thread': 0.38; 'received:google.com': 0.38; 'not,': 0.39; 'received:209.85.214': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.39; 'would': 0.40; 'header:Received:5': 0.40; '2011': 0.62; 'upon': 0.63; 'special': 0.66; 'advantages': 0.77 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=xPPP8FhqIZRUzyxfvHeGr99lZDS2qXGe96eNr70KATc=; b=GYs4kyMckTWu03dAXExw/ZAwoDmJ6gaVjaY8EZ7dtbI4yOHYoKV/NMfvDQDmcbyqAK 4Rv6oMExMWVg7yfbPJqhu/laGcQ2r8s2lq4xJ6GDEN4byeYkdbTcVGUQCY3YiXb8bqOY O4lM37ZPtl3laJjjooHGQ4PB4COWY716Of9MI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=cKxrO3tke6GWtZV59xIKs6XzRe4F4OrGfHRoC0m2vXvF13fXhiIQQ0IveehZC1los8 gil1XO8fvWu69/5dZ2JuB8Smld6xabDomm7jk9bcDvIhKB2z2dA5k2lnMwrBZemCRs/f 66NJA3ue94XBZO32z8kZWGgCj0vOOSRzdWtDE= MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 12 May 2011 01:22:03 +1000 Subject: Re: NewBie Doubt in Python Thread Programming From: Chris Angelico To: python-list@python.org 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: 11 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305127326 news.xs4all.nl 81483 [::ffff:82.94.164.166]:42822 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5124 On Thu, May 12, 2011 at 1:16 AM, Wojtek Mamrak wrote: > Is there any special reason you don't want to use QThread? > http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qthread.html#details Other than that QThread is part of QT and threading isn't, what are the advantages of QThread? Is it possible (safe) to manipulate QT objects - in this case, the button - from a thread other than the one that created them? (If not, that would be a good reason for using QThread, which will fire an event upon termination.) Chris Angelico