remove the Yield's
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
db7239958f
commit
f8a11ef915
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user