projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wxDisplay build fix for missing Direct Draw.
[wxWidgets.git]
/
wxPython
/
demo
/
Process.py
diff --git
a/wxPython/demo/Process.py
b/wxPython/demo/Process.py
index 42c46c2cd6492874ab238b7011839c328a26b4b6..ad6827cc3163d4c1bf62d5143a576b184dffc7b3 100644
(file)
--- 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
import wx
@@
-15,8
+11,8
@@
class TestPanel(wx.Panel):
self.process = None
self.Bind(wx.EVT_IDLE, self.OnIdle)
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)
# caught in the normal way...
self.Bind(wx.EVT_END_PROCESS, self.OnProcessEnded)
@@
-26,7
+22,8
@@
class TestPanel(wx.Panel):
self.cmd = wx.TextCtrl(self, -1, 'python -u data/echo.py')
self.exBtn = wx.Button(self, -1, 'Execute')
self.cmd = wx.TextCtrl(self, -1, 'python -u data/echo.py')
self.exBtn = wx.Button(self, -1, 'Execute')
- self.out = wx.TextCtrl(self, -1, '', style=wx.TE_MULTILINE|wx.TE_READONLY)
+ self.out = wx.TextCtrl(self, -1, '',
+ style=wx.TE_MULTILINE|wx.TE_READONLY|wx.TE_RICH2)
self.inp = wx.TextCtrl(self, -1, '', style=wx.TE_PROCESS_ENTER)
self.sndBtn = wx.Button(self, -1, 'Send')
self.inp = wx.TextCtrl(self, -1, '', style=wx.TE_PROCESS_ENTER)
self.sndBtn = wx.Button(self, -1, 'Send')
@@
-139,9
+136,9
@@
def runTest(frame, nb, log):
overview = """\
<html><body>
overview = """\
<html><body>
-<h2>wxProcess</h2>
+<h2>wx
.
Process</h2>
-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.
started by wxExecute terminates, and also to get input/output streams
for the child process's stdout, stderr and stdin.
@@
-162,4
+159,4
@@
child process to exit its main loop.
if __name__ == '__main__':
import sys,os
import run
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:]
)