]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/demo/Main.py
more 2.0b9 updates
[wxWidgets.git] / utils / wxPython / demo / Main.py
index a17ff06e0f77c8f28fc721f637de9a9d93ca6742..e88d3395c7619db23767d177e1cf1e5c2b54ddfc 100644 (file)
@@ -120,7 +120,7 @@ class wxPythonDemo(wxFrame):
         self.log = wxTextCtrl(splitter2, -1, '', wxDefaultPosition, wxDefaultSize,
                               wxTE_MULTILINE|wxTE_READONLY|wxHSCROLL)
         (w, self.charHeight) = self.log.GetTextExtent('X')
-        self.WriteText('wxPython Demo Log:\n')
+        #self.WriteText('wxPython Demo Log:\n')
 
 
         # add the windows to the splitter and split it.
@@ -138,11 +138,10 @@ class wxPythonDemo(wxFrame):
     #---------------------------------------------
     def WriteText(self, text):
         self.log.WriteText(text)
-        if wxPlatform == '__WXMSW__':
-            w, h = self.log.GetClientSizeTuple()
-            numLines = h/self.charHeight
-            x, y = self.log.PositionToXY(self.log.GetLastPosition())
-            self.log.ShowPosition(self.log.XYToPosition(x, y-numLines+1))
+        w, h = self.log.GetClientSizeTuple()
+        numLines = h/self.charHeight
+        x, y = self.log.PositionToXY(self.log.GetLastPosition())
+        self.log.ShowPosition(self.log.XYToPosition(x, y-numLines+1))
 
     def write(self, txt):
         self.WriteText(txt)