]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/BitmapFromBuffer.py
We can't define things in someone else's namespace.
[wxWidgets.git] / wxPython / demo / BitmapFromBuffer.py
index 2f72f6a02e1cd1b52547715a4305e3274daa2c41..4fd8bae64958b256ed5162d1030b82036efb70e8 100644 (file)
@@ -77,7 +77,7 @@ class TestPanel(wx.Panel):
         # Make a bitmap using an array of RGB bytes plus a separate
         # buffer for the alpha channel
         bpp = 3  # bytes per pixel
-        bytes = array.array('B', [1,2,3] * width*height)#*bpp)
+        bytes = array.array('B', [0] * width*height*bpp)
 
         def offset(x, y):
             # return the offset into the bytes array for the start of