Re: thread and portability Unix/Linux

2007-03-08 Thread awalter1
On 7 mar, 21:07, "Joshua J. Kugler" <[EMAIL PROTECTED]> wrote: > awalter1 wrote: > > Hi, > > I have a Python application that runs under HPUX 11.11 (then unix). It > > uses threads : > > from threading import Thread > > # Class Main > > clas

thread and portability Unix/Linux

2007-03-07 Thread awalter1
Hi, I have a Python application that runs under HPUX 11.11 (then unix). It uses threads : from threading import Thread # Class Main class RunComponent(Thread): My application should run under Linux (red hat 3 ou 4) and I read that differences exist between the implementation of threads : on HPUX 1

Re: gtk.mainquit is deprecated

2007-02-28 Thread awalter1
Thank you You're right. a connection was made between "destroy" and gtk.main_quit (a bad cut and paste from an old application). On 27 fév, 17:25, Alan Franzoni <[EMAIL PROTECTED]> wrote: > Il 27 Feb 2007 01:56:33 -0800, awalter1 ha scritto: > > > But I don'

gtk.mainquit is deprecated

2007-02-27 Thread awalter1
Hello, (environment : python 2.4.2, pyGTK, GTK+ 2.6.9 under HPUX 11.11: unix) On the instruction self.window.destroy(), I get the following message : lookup.py:121: GtkDeprecationWarning: gtk.mainquit is deprecated, use gtk.main_quit instead self.window.destroy() But I don't want to quit the applic

Re: thread and processes with python/GTK

2007-01-31 Thread awalter1
pt.py" > and "python script.py | cat" behave different. > > Maybe "sys.stdout.flush()" helps you. > > BTW, I switched from threads to idle_add for pygtk > applications. > > > > > > awalter1 wrote: > > Hello, > > > I'm develo

thread and processes with python/GTK

2007-01-30 Thread awalter1
Hello, I'm developping an application with python, pyGTK and GTK+. I've performed many tests by using methods as Popen, popen2, os.system ... to communicate with Unix (HPUX), The last attempt is this code written in a thread : fin,fout = popen2.popen2('ps -def') line = fin

use of a GChildWatch source

2007-01-24 Thread awalter1
Hello I am using python, pyGTK and GTK+ on HPUX (unix) In this context, the pygtk documentation about gobject.spawn_async says : ... you must use a GChildWatch source to be notified about the death of the child process ... Does someone know where to find details about GChildWatch ? I didn't retrie

monitor the start and end of applications

2007-01-19 Thread awalter1
Hello, My purpose is to supervise (from a python program) the launch of some other programs (python or non python programs) as : "I click on the button X and the pg X is launched ..." I want also that my supervision be "wake up" when a pg has exited to check its status or something like that. I sup

Re: get the en of a program running in background

2006-09-11 Thread awalter1
Hi, I am using subprocess module, then I do not fork my program. How use os.wait() in a non blocking mode ? Thanks Damjan wrote: > > It works when a click on a button launches a program P. > > Now, I want that a click on another button launches another program P' > > > > In this case there is only

Re: get the en of a program running in background

2006-09-11 Thread awalter1
ocess will > end before the child process does. Add a call to 'os.wait()' to have it > wait for the child. In your GUI you probably won't want it. > > Hope this helps. > > awalter1 wrote: > > Hi, > > I develop a graphical user interface (with pyGTK) wher

Re: get the en of a program running in background

2006-09-11 Thread awalter1
le run only, or need different behavior for > different subprocesses, have your signal handler re-register the old > handler (see the docs for module 'signal'). > > A note about the example: if you run it as is, the parent process will > end before the child process does. Add a

get the en of a program running in background

2006-09-10 Thread awalter1
Hi, I develop a graphical user interface (with pyGTK) where a click on a button shall launch a program P in background. I want to get the end of this program P but I don't want that my HMI be freezed while P is running. I try to use fork examplesI found on the web, but it seems to not run as expect