|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
execl() and wxtoolbar
Hi,
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. thanks, Nuna |
|
#2
|
||||
|
||||
|
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. Grim
__________________
*** Experimental Python Markup CGI V2 *** |
|
#3
|
|||
|
|||
|
Thanks a lot for the cues. I'll go on with the popen functions.
Nuna |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > execl() and wxtoolbar |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|