Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5123
| References | (1 earlier) <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 | 2011-05-11 17:16 +0200 |
| Subject | Re: NewBie Doubt in Python Thread Programming |
| From | Wojtek Mamrak <tacyt1007@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1406.1305126992.9059.python-list@python.org> (permalink) |
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
Re: NewBie Doubt in Python Thread Programming Wojtek Mamrak <tacyt1007@gmail.com> - 2011-05-11 17:16 +0200
csiph-web