From 2c52762bb9d545e6651d4e2aa7daf0ceba676872 Mon Sep 17 00:00:00 2001 From: Corran Webster Date: Mon, 15 May 2023 14:42:33 +0100 Subject: [PATCH] Update usage of wx API --- chaco/tools/toolbars/toolbar_buttons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()