Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5123
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <tacyt1007@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.04; 'wed,': 0.04; 'over,': 0.05; 'run,': 0.07; 'chose': 0.09; 'invokes': 0.09; 'it;': 0.09; 'pm,': 0.11; 'monitor': 0.12; 'gui': 0.14; 'wrote:': 0.14; '(assuming': 0.16; 'disabled.': 0.16; 'invoking': 0.16; 'subject:Programming': 0.16; 'subject:Thread': 0.16; 'thread.': 0.16; 'url:riverbankcomputing': 0.16; 'wrong).': 0.16; 'this?': 0.18; 'command': 0.19; 'code': 0.22; 'header:In- Reply-To:1': 0.22; 'runs': 0.24; 'received:209.85.212': 0.25; 'correct': 0.26; "i'm": 0.26; 'chris': 0.27; 'url:mailman': 0.27; 'message-id:@mail.gmail.com': 0.28; 'list': 0.30; 'confused': 0.31; 'all,': 0.31; 'to:addr:python-list': 0.32; 'another': 0.32; 'url:listinfo': 0.33; 'url:docs': 0.33; 'execution': 0.33; 'file.': 0.34; 'there': 0.35; 'message.': 0.35; 'file': 0.35; 'url:uk': 0.36; 'running': 0.36; 'response': 0.36; 'event': 0.37; 'received:209.85': 0.37; 'url:python': 0.37; 'run': 0.37; 'thread': 0.38; 'received:google.com': 0.38; 'ways': 0.38; 'but': 0.38; 'url:org': 0.38; 'end': 0.39; 'active': 0.39; 'to:addr:python.org': 0.39; 'could': 0.39; 'received:209': 0.39; 'would': 0.40; 'header:Received:5': 0.40; 'reply': 0.61; '2011': 0.62; 'special': 0.66; 'click': 0.77; '11,': 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:content-transfer-encoding; bh=ddB/J6X3OzUtyhgVCgouiuavDsixPLGcaf4ez40EwM0=; b=Gmrk34zBtOuzUv1ymL0OYxNvBUpvJ/82w5DYTdzgK9Ffm8gPb6Vnf7uN8nX9Cz40sL s04DOa0kGJS7Cm2AnAEGCKwyn9JVyTjuLHa5CSjsQq7kt3iGHED2Z55dm85vR2N6op+s G8JSkQJfpjNCfgo4edHs/WzdL83mIrxVAfGlo= |
| 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:content-transfer-encoding; b=aqmVJJZCp1GaffryuwnP3SAATXbMW3tTTh+NjFa08ArwTJeUOFp4kWRjkzKowosvNq YB/fYA6xJzG2bChK/QgHISdUi1feDoWrr3HQSY16pmxfsZPSWCzR7axdSINoFzDoy4ZR lwI61ssjIplGUn1aLEt4NU29+DO+Zjr0O3iKE= |
| MIME-Version | 1.0 |
| In-Reply-To | <BANLkTimPEB8GCAOHQY4-V53eTHr6Rzt87Q@mail.gmail.com> |
| References | <BANLkTikr8fu1sDrfu2a-wyEN_KpVVNCdew@mail.gmail.com> <BANLkTik_ZLvgUVuttiGKQshLmnkU_Mvk+g@mail.gmail.com> <BANLkTin7fq7ybKq94ZUs-7X8dLu7_UFnrQ@mail.gmail.com> <BANLkTi=1ovD0w690xY3cyRwx5C4oPpQY5Q@mail.gmail.com> <BANLkTim-4eHSJe8jc9QcDo-ZfzOHxFg=5w@mail.gmail.com> <BANLkTimPEB8GCAOHQY4-V53eTHr6Rzt87Q@mail.gmail.com> |
| Date | Wed, 11 May 2011 17:16:28 +0200 |
| Subject | Re: NewBie Doubt in Python Thread Programming |
| From | Wojtek Mamrak <tacyt1007@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| 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.1406.1305126992.9059.python-list@python.org> (permalink) |
| Lines | 42 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1305126992 news.xs4all.nl 34849 [::ffff:82.94.164.166]:41061 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:5123 |
Show key headers only | View raw
Is there any special reason you don't want to use QThread? http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qthread.html#details regards 2011/5/11 Chris Angelico <rosuav@gmail.com>: > On Wed, May 11, 2011 at 7:08 PM, vijay swaminathan <swavijay@gmail.com> wrote: >> Sorry. My intention was not to send out a private message. when I chose >> reply to all, I was confused if this would start as a new thread. so just >> did a reply.. > > No probs. If you just send your response to the list > python-list@python.org. it'll get to everyone. > >> I have developed a GUI based on pyQT4 which has a run button. when I click >> on run, it invokes a command prompt and runs a .bat file. >> >> Till the execution of .bat file is over, I want the run button on the GUI to >> be disabled. so i thought of invoking the command prompt and running the >> .bat file on a thread so that I could monitor the status of the thread >> (assuming that the thread would be active till command prompt is active - >> correct me if I'm wrong). > > Yes, but only if you use os.system(). > >> Any flaw in the logic? any other better ways of achieving this? >> > > You'll find it easier to get an event at the end of it; simply have > another line of code after the os.system() which will reenable the > button. > > Chris Angelico > -- > http://mail.python.org/mailman/listinfo/python-list >
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: NewBie Doubt in Python Thread Programming Wojtek Mamrak <tacyt1007@gmail.com> - 2011-05-11 17:16 +0200
csiph-web