Re: pygtk and long running process



On Sun, 24 Apr 2005 19:46:52 -0600, Daniel Cer wrote:

> Daniel Cer wrote:
>> Robert wrote:
>>
>>> I have a command line app that can take up to 20 minutes to complete and
>>> every minute or so updates it's status (spits it out to console). I am
>>> writing a front end for this app in python/gtk and was wondering what
>>> command I use to a) invoke the command and b) how to capture it's out put
>>> and for instance update a text box.
>>
>>
>> os.popen() will probably do what you want.
>>
>> e.g.:
>
> (....)
>
> As for the latter part of (b)....
>
> I don't know much about pygtk, but I imagine you should be able to put
> the code that monitors the external program in a thread, and then
> whenever you get some new status information update the text box.
>
> -Dan

Thanks for your help

.



Relevant Pages

  • Re: Calling procedure on another software
    ... Robert wrote: ... > The second instance should send a message to the first instance. ... What you'll need to do is add command line support to the app. ... Command$ variable will contain any command line params you send to an app. ...
    (microsoft.public.vb.general.discussion)
  • Re: Programming "efficiently" on given hardware - what does it mean really?
    ... >> in a command line world again. ... > launching an app, selecting menu items, hoping it does what ... In a GUI environment, use a RAD tool to whip up a quick, simple UI ...
    (comp.programming)
  • Re: Application starts too soon
    ... expecting a network connection to exist. ... > The application runs froma a batch file. ... Finally the command prompt arrives, ... > think the app tries to run, encounters an error, and exits. ...
    (microsoft.public.windowsxp.embedded)
  • Re: Updating a database
    ... command line parameters and exits. ... Update.exe waits for the main App to exit ... whilst the backend is an Access database. ... > I do changes to the app and the database (add fields, change queries, ...
    (microsoft.public.vb.general.discussion)
  • Re: [kde] Why KDE4 is called KDE?
    ... Maybe my krunner is broken. ... It in no way bests a command line for running an app. ... I can have multiple console windows open at the ...
    (KDE)