X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/299647acac7960652aadb008775429c1f8ea9b8d..628eae0bcd7916c57847b7eab739d4cc32534ccf:/wxPython/demo/Process.py?ds=sidebyside diff --git a/wxPython/demo/Process.py b/wxPython/demo/Process.py index 42c46c2cd6..beea93893c 100644 --- a/wxPython/demo/Process.py +++ b/wxPython/demo/Process.py @@ -1,7 +1,3 @@ -# 11/20/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o Updated for wx namespace -# import wx @@ -15,8 +11,8 @@ class TestPanel(wx.Panel): self.process = None self.Bind(wx.EVT_IDLE, self.OnIdle) - # We can either derive from wxProcess and override OnTerminate - # or we can let wxProcess send this window an event that is + # We can either derive from wx.Process and override OnTerminate + # or we can let wx.Process send this window an event that is # caught in the normal way... self.Bind(wx.EVT_END_PROCESS, self.OnProcessEnded) @@ -139,9 +135,9 @@ def runTest(frame, nb, log): overview = """\ -

wxProcess

+

wx.Process

-wxProcess lets you get notified when an asyncronous child process +wx.Process lets you get notified when an asyncronous child process started by wxExecute terminates, and also to get input/output streams for the child process's stdout, stderr and stdin. @@ -162,4 +158,4 @@ child process to exit its main loop. if __name__ == '__main__': import sys,os import run - run.main(['', os.path.basename(sys.argv[0])]) + run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])