#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2004
    Posts
    2
    Rep Power
    0

    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. #2
  3. Mini me.
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Location
    Cambridge, UK
    Posts
    783
    Rep Power
    14
    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
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2004
    Posts
    2
    Rep Power
    0
    Thanks a lot for the cues. I'll go on with the popen functions.

    Nuna

IMN logo majestic logo threadwatch logo seochat tools logo