mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 11:00:07 +01:00
Trim trailing space samples directory
This commit is contained in:
@@ -50,7 +50,7 @@ class TestPanel(wx.Panel):
|
||||
tm = t.timeit(num)
|
||||
log.write("%d passes creating %dx%d images in %f seconds\n"
|
||||
"\t%f seconds per pass " % (num, DIM,DIM, tm, tm/num))
|
||||
|
||||
|
||||
if not USE_NUMPY:
|
||||
log.write("using raw access\n")
|
||||
self.redBmp = self.MakeBitmap(178, 34, 34)
|
||||
@@ -122,7 +122,7 @@ class TestPanel(wx.Panel):
|
||||
pixels.Set(red, green, blue, wx.ALPHA_OPAQUE)
|
||||
pixels.MoveTo(pixelData, DIM-1, y)
|
||||
pixels.Set(red, green, blue, wx.ALPHA_OPAQUE)
|
||||
|
||||
|
||||
return bmp
|
||||
|
||||
|
||||
@@ -149,9 +149,9 @@ class TestPanel(wx.Panel):
|
||||
# finally, use the array to create a bitmap
|
||||
bmp = wx.Bitmap.FromBufferRGBA(DIM, DIM, arr)
|
||||
return bmp
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
if __name__ == '__main__':
|
||||
@@ -160,4 +160,4 @@ if __name__ == '__main__':
|
||||
pnl = TestPanel(frm, sys.stdout)
|
||||
frm.Show()
|
||||
app.MainLoop()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user