]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxProcess.py
cleaned up the checkbox creation code (~70 lines of code became 3)
[wxWidgets.git] / wxPython / demo / wxProcess.py
index 4e25bd6e6d3817d70fe77fa95558aebbf29379e3..c2ba5ba1ecaf4787af5cfa664dc9c829e7431986 100644 (file)
@@ -19,7 +19,7 @@ class TestPanel(wxPanel):
 
         # Make the controls
         prompt = wxStaticText(self, -1, 'Command line:')
 
         # Make the controls
         prompt = wxStaticText(self, -1, 'Command line:')
-        self.cmd = wxTextCtrl(self, -1, 'python data/echo.py')
+        self.cmd = wxTextCtrl(self, -1, 'python -u data/echo.py')
         self.exBtn = wxButton(self, -1, 'Execute')
 
         self.out = wxTextCtrl(self, -1, '', style=wxTE_MULTILINE|wxTE_READONLY)
         self.exBtn = wxButton(self, -1, 'Execute')
 
         self.out = wxTextCtrl(self, -1, '', style=wxTE_MULTILINE|wxTE_READONLY)
@@ -91,8 +91,9 @@ class TestPanel(wxPanel):
 
     def OnCloseStream(self, evt):
         self.log.write('OnCloseStream\n')
 
     def OnCloseStream(self, evt):
         self.log.write('OnCloseStream\n')
+        #print "b4 CloseOutput"
         self.process.CloseOutput()
         self.process.CloseOutput()
-
+        #print "after CloseOutput"
 
     def OnIdle(self, evt):
         if self.process is not None:
 
     def OnIdle(self, evt):
         if self.process is not None: