]> git.saurik.com Git - wxWidgets.git/commitdiff
remove the Yield's
authorRobin Dunn <robin@alldunn.com>
Tue, 8 Jun 2004 00:01:20 +0000 (00:01 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 8 Jun 2004 00:01:20 +0000 (00:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/FloatCanvas.py
wxPython/wx/lib/floatcanvas/FloatCanvas.py

index 94f2eab77cb4194a3200362e37ecc33bbf677d64..275b8d852e41d178059992e7c6ddb681cec31336 100644 (file)
@@ -267,7 +267,6 @@ else:
             self.Destroy()
             
         def DrawTest(self,event=None):
-            wx.GetApp().Yield(True)
 #            import random
 #            import RandomArray
             Range = (-10,10)
@@ -381,7 +380,6 @@ else:
 
             """
             print "Running TestAnimation"
-            wx.GetApp().Yield(True)
             Range = (-10,10)
             self.Range = Range
 
@@ -480,7 +478,6 @@ else:
                 Object.Text.Move( (self.dx,self.dy))
                 self.Canvas.Draw()
                 self.TimeStep += 1
-                wx.GetApp().Yield(True)
             else:
                 self.Timer.Stop()
             
@@ -498,7 +495,6 @@ else:
             #print "Did %i frames in %f seconds"%(N, (time.time() - start) )
                 
         def TestHitTest(self,event=None):
-            wx.GetApp().Yield(True)
 
             self.UnBindAllMouseEvents()
             Canvas = self.Canvas
@@ -709,7 +705,6 @@ else:
 
         def TestHitTestForeground(self,event=None):
             print "Running: TestHitTestForeground"
-            wx.GetApp().Yield(True)
 
             self.UnBindAllMouseEvents()
             Canvas = self.Canvas
@@ -814,7 +809,6 @@ else:
 
 
         def TestText(self, event= None):
-            wx.GetApp().Yield(True)
 
             self.BindAllMouseEvents()
             Canvas = self.Canvas
@@ -874,7 +868,6 @@ else:
             self.Canvas.ZoomToBB()
 
         def TestScaledText(self, event= None):
-            wx.GetApp().Yield(True)
 
             self.BindAllMouseEvents()
             Canvas = self.Canvas
@@ -925,7 +918,6 @@ else:
             self.Canvas.ZoomToBB()
             
         def DrawMap(self,event = None):
-            wx.GetApp().Yield(True)
             import os, time
             self.BindAllMouseEvents()
             
@@ -945,7 +937,6 @@ else:
     
  
         def LineTest(self,event = None):
-            wx.GetApp().Yield(True)
             import os, time
 #            import random
             colors = self.colors
@@ -974,7 +965,6 @@ else:
             #print "It took %f seconds to draw %i lines"%(time.clock() - start,len(linepoints) )
 
         def SpeedTest(self,event=None):
-            wx.GetApp().Yield(True)
 #            import random
 #            import RandomArray
             BigRange = (-1000,1000)
@@ -1107,7 +1097,6 @@ else:
 
         def TempTest(self, event= None):
             "Running the Temporary test"
-            wx.GetApp().Yield(True)
 
             self.UnBindAllMouseEvents()
             Canvas = self.Canvas
index 58f9421df07be3b0b73f3022e8c2b722dbf4fc01..4ff0fcb513d52813e8c52226cf74335cdc604eca 100644 (file)
@@ -1646,7 +1646,6 @@ class FloatCanvas(wx.Panel):
                               ViewPortBB,
                               self._ForegroundHTdc)
         ScreenDC.Blit(0, 0, self.PanelSize[0],self.PanelSize[1], dc, 0, 0)
-##        wx.GetApp().Yield(True)
         # If the canvas is in the middle of a zoom or move, the Rubber Band box needs to be re-drawn
         # This seeems out of place, but it works.
         if self.PrevRBBox: