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()
|
self.Destroy()
|
||||||
|
|
||||||
def DrawTest(self,event=None):
|
def DrawTest(self,event=None):
|
||||||
wx.GetApp().Yield(True)
|
|
||||||
# import random
|
# import random
|
||||||
# import RandomArray
|
# import RandomArray
|
||||||
Range = (-10,10)
|
Range = (-10,10)
|
||||||
@ -381,7 +380,6 @@ else:
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
print "Running TestAnimation"
|
print "Running TestAnimation"
|
||||||
wx.GetApp().Yield(True)
|
|
||||||
Range = (-10,10)
|
Range = (-10,10)
|
||||||
self.Range = Range
|
self.Range = Range
|
||||||
|
|
||||||
@ -480,7 +478,6 @@ else:
|
|||||||
Object.Text.Move( (self.dx,self.dy))
|
Object.Text.Move( (self.dx,self.dy))
|
||||||
self.Canvas.Draw()
|
self.Canvas.Draw()
|
||||||
self.TimeStep += 1
|
self.TimeStep += 1
|
||||||
wx.GetApp().Yield(True)
|
|
||||||
else:
|
else:
|
||||||
self.Timer.Stop()
|
self.Timer.Stop()
|
||||||
|
|
||||||
@ -498,7 +495,6 @@ else:
|
|||||||
#print "Did %i frames in %f seconds"%(N, (time.time() - start) )
|
#print "Did %i frames in %f seconds"%(N, (time.time() - start) )
|
||||||
|
|
||||||
def TestHitTest(self,event=None):
|
def TestHitTest(self,event=None):
|
||||||
wx.GetApp().Yield(True)
|
|
||||||
|
|
||||||
self.UnBindAllMouseEvents()
|
self.UnBindAllMouseEvents()
|
||||||
Canvas = self.Canvas
|
Canvas = self.Canvas
|
||||||
@ -709,7 +705,6 @@ else:
|
|||||||
|
|
||||||
def TestHitTestForeground(self,event=None):
|
def TestHitTestForeground(self,event=None):
|
||||||
print "Running: TestHitTestForeground"
|
print "Running: TestHitTestForeground"
|
||||||
wx.GetApp().Yield(True)
|
|
||||||
|
|
||||||
self.UnBindAllMouseEvents()
|
self.UnBindAllMouseEvents()
|
||||||
Canvas = self.Canvas
|
Canvas = self.Canvas
|
||||||
@ -814,7 +809,6 @@ else:
|
|||||||
|
|
||||||
|
|
||||||
def TestText(self, event= None):
|
def TestText(self, event= None):
|
||||||
wx.GetApp().Yield(True)
|
|
||||||
|
|
||||||
self.BindAllMouseEvents()
|
self.BindAllMouseEvents()
|
||||||
Canvas = self.Canvas
|
Canvas = self.Canvas
|
||||||
@ -874,7 +868,6 @@ else:
|
|||||||
self.Canvas.ZoomToBB()
|
self.Canvas.ZoomToBB()
|
||||||
|
|
||||||
def TestScaledText(self, event= None):
|
def TestScaledText(self, event= None):
|
||||||
wx.GetApp().Yield(True)
|
|
||||||
|
|
||||||
self.BindAllMouseEvents()
|
self.BindAllMouseEvents()
|
||||||
Canvas = self.Canvas
|
Canvas = self.Canvas
|
||||||
@ -925,7 +918,6 @@ else:
|
|||||||
self.Canvas.ZoomToBB()
|
self.Canvas.ZoomToBB()
|
||||||
|
|
||||||
def DrawMap(self,event = None):
|
def DrawMap(self,event = None):
|
||||||
wx.GetApp().Yield(True)
|
|
||||||
import os, time
|
import os, time
|
||||||
self.BindAllMouseEvents()
|
self.BindAllMouseEvents()
|
||||||
|
|
||||||
@ -945,7 +937,6 @@ else:
|
|||||||
|
|
||||||
|
|
||||||
def LineTest(self,event = None):
|
def LineTest(self,event = None):
|
||||||
wx.GetApp().Yield(True)
|
|
||||||
import os, time
|
import os, time
|
||||||
# import random
|
# import random
|
||||||
colors = self.colors
|
colors = self.colors
|
||||||
@ -974,7 +965,6 @@ else:
|
|||||||
#print "It took %f seconds to draw %i lines"%(time.clock() - start,len(linepoints) )
|
#print "It took %f seconds to draw %i lines"%(time.clock() - start,len(linepoints) )
|
||||||
|
|
||||||
def SpeedTest(self,event=None):
|
def SpeedTest(self,event=None):
|
||||||
wx.GetApp().Yield(True)
|
|
||||||
# import random
|
# import random
|
||||||
# import RandomArray
|
# import RandomArray
|
||||||
BigRange = (-1000,1000)
|
BigRange = (-1000,1000)
|
||||||
@ -1107,7 +1097,6 @@ else:
|
|||||||
|
|
||||||
def TempTest(self, event= None):
|
def TempTest(self, event= None):
|
||||||
"Running the Temporary test"
|
"Running the Temporary test"
|
||||||
wx.GetApp().Yield(True)
|
|
||||||
|
|
||||||
self.UnBindAllMouseEvents()
|
self.UnBindAllMouseEvents()
|
||||||
Canvas = self.Canvas
|
Canvas = self.Canvas
|
||||||
|
@ -1646,7 +1646,6 @@ class FloatCanvas(wx.Panel):
|
|||||||
ViewPortBB,
|
ViewPortBB,
|
||||||
self._ForegroundHTdc)
|
self._ForegroundHTdc)
|
||||||
ScreenDC.Blit(0, 0, self.PanelSize[0],self.PanelSize[1], dc, 0, 0)
|
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
|
# 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.
|
# This seeems out of place, but it works.
|
||||||
if self.PrevRBBox:
|
if self.PrevRBBox:
|
||||||
|
Loading…
Reference in New Issue
Block a user