diff --git a/chaco/tools/toolbars/toolbar_buttons.py b/chaco/tools/toolbars/toolbar_buttons.py index f0c281802..be55f9bad 100644 --- a/chaco/tools/toolbars/toolbar_buttons.py +++ b/chaco/tools/toolbars/toolbar_buttons.py @@ -196,7 +196,7 @@ def perform(self, event): def _perform_wx(self, width, height, gc): import wx - bitmap = wx.BitmapFromBufferRGBA( + bitmap = wx.Bitmap.FromBufferRGBA( width + 1, height + 1, gc.bmp_array.flatten() ) data = wx.BitmapDataObject()