Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #5226 > unrolled thread

Re: NewBie Doubt in Python Thread Programming

Started byChris Angelico <rosuav@gmail.com>
First post2011-05-12 20:46 +1000
Last post2011-05-12 20:46 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: NewBie Doubt in Python Thread Programming Chris Angelico <rosuav@gmail.com> - 2011-05-12 20:46 +1000

#5226 — Re: NewBie Doubt in Python Thread Programming

FromChris Angelico <rosuav@gmail.com>
Date2011-05-12 20:46 +1000
SubjectRe: NewBie Doubt in Python Thread Programming
Message-ID<mailman.1460.1305197177.9059.python-list@python.org>
On Thu, May 12, 2011 at 7:42 PM, vijay swaminathan <swavijay@gmail.com> wrote:
> Hi Chris,
>
> I tried using os.system as well but it did not even open up the command
> prompt.
>
> Can you please share the code that worked for you.. just wondering if I'm
> missing something very basic.

Caveat: I'm not using Qt, I just tried this in IDLE (which is graphical).

C:\>copy con test.bat
echo Hello, world!
pause
^Z
        1 file(s) copied.


IDLE 2.6.5
>>> import os
>>> os.system("c:\\test.bat")
0

The 0 and subsequent prompt don't appear until the batch file
finishes. Meanwhile, the batch file is executing in a separate window.

When you try it inside Qt, do you get a background window that needs
to be brought to the front? Does execution pause while the batch file
runs?

Chris Angelico

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web