self.Destroy()
def DrawTest(self,event=None):
- wx.GetApp().Yield(True)
# import random
# import RandomArray
Range = (-10,10)
"""
print "Running TestAnimation"
- wx.GetApp().Yield(True)
Range = (-10,10)
self.Range = Range
Object.Text.Move( (self.dx,self.dy))
self.Canvas.Draw()
self.TimeStep += 1
- wx.GetApp().Yield(True)
else:
self.Timer.Stop()
#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
def TestHitTestForeground(self,event=None):
print "Running: TestHitTestForeground"
- wx.GetApp().Yield(True)
self.UnBindAllMouseEvents()
Canvas = self.Canvas
def TestText(self, event= None):
- wx.GetApp().Yield(True)
self.BindAllMouseEvents()
Canvas = self.Canvas
self.Canvas.ZoomToBB()
def TestScaledText(self, event= None):
- wx.GetApp().Yield(True)
self.BindAllMouseEvents()
Canvas = self.Canvas
self.Canvas.ZoomToBB()
def DrawMap(self,event = None):
- wx.GetApp().Yield(True)
import os, time
self.BindAllMouseEvents()
def LineTest(self,event = None):
- wx.GetApp().Yield(True)
import os, time
# import random
colors = self.colors
#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)
def TempTest(self, event= None):
"Running the Temporary test"
- wx.GetApp().Yield(True)
self.UnBindAllMouseEvents()
Canvas = self.Canvas