April 23rd, 2004, 01:34 PM
execl() and wxtoolbar
I want to use execl() function as the event under
def OnToolbar1tools0ToolRclicked(self, event):
should I import os, should I use os.execl()..?
I haven't found any good example on internet on how to call a child process under wxpython.
Need help. If you figure it's a very stupid question, well tell me what to study, or just point me some public source code which contains the call of a child process associated with a toolbar's button, please.
April 23rd, 2004, 07:42 PM
os.execl - you want to terminate the wxPython based program and then launch another? In which case I would set some variable when the toolbar item is clicked and then cause the wxApp to finish. Code after the App.mainloop() can then check the variable and act on it such as using os.execl
If you want to manage a process from within your program then personally I've used popen2.Popen4 as it gives me a lot of control and separation from the child process.
April 23rd, 2004, 10:42 PM
Thanks a lot for the cues. I'll go on with the popen functions.