Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5104
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@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; 'wrong).': 0.16; 'this?': 0.18; 'command': 0.19; 'code': 0.22; 'header:In-Reply-To:1': 0.22; 'received:209.85.214.174': 0.23; 'received:mail- iw0-f174.google.com': 0.23; 'runs': 0.24; 'correct': 0.26; "i'm": 0.26; 'chris': 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; 'execution': 0.33; 'file.': 0.34; 'message.': 0.35; 'file': 0.35; 'running': 0.36; 'response': 0.36; 'event': 0.37; 'received:209.85': 0.37; 'run': 0.37; 'thread': 0.38; 'received:google.com': 0.38; 'ways': 0.38; 'but': 0.38; 'received:209.85.214': 0.39; '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; '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=BGTCuzUHf+q7QRn0GbS4vb8Ft6t/kdXes6qKhYtLZDw=; b=jFFzXT2cIEAi01o0ydDSxDWHGbFL/BoH1CHcchAJq+cZobBE6rkG1/+CD+akd3QZMp lTwcTWgQb5u0q2y8nISfvadegBXGok4HZDD3OIxDgfTtVTLx5Rgw1q2UhBHIi/FdHWTq BqlyqZPSvWmFP5fRwi82LvOKb7f2N7BG/v8f4= |
| 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=SEwsktEiMFx61PHmWlXLJcQk3oZABWSb7zkfa/eHthqkIL7eISVfvPh2McWIFG2RAK nRxoC4Tc2MV6ub1XfNE4jgTGEwIaPLri2f3IM7qefuD3xxxzd3HV8aWXkEkJXN5eAw/a CkyQP47RtbAO9GI4NmMZsOg+iMShqfxzJT0pY= |
| MIME-Version | 1.0 |
| In-Reply-To | <BANLkTim-4eHSJe8jc9QcDo-ZfzOHxFg=5w@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> |
| Date | Wed, 11 May 2011 21:13:33 +1000 |
| Subject | Re: NewBie Doubt in Python Thread Programming |
| From | Chris Angelico <rosuav@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.1398.1305112418.9059.python-list@python.org> (permalink) |
| Lines | 30 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1305112418 news.xs4all.nl 81476 [::ffff:82.94.164.166]:49406 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:5104 |
Show key headers only | View raw
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: NewBie Doubt in Python Thread Programming Chris Angelico <rosuav@gmail.com> - 2011-05-11 21:13 +1000
csiph-web