From b57b645cced4561ddfeef5e23cd9489c92777929 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 19 Sep 2016 17:28:29 -0700 Subject: [PATCH] Update wx.Image.Scale doc snippet --- .../snippets/python/converted/wx.Image.Scale.1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sphinx/rest_substitutions/snippets/python/converted/wx.Image.Scale.1.py b/docs/sphinx/rest_substitutions/snippets/python/converted/wx.Image.Scale.1.py index 443c312d..573a820d 100644 --- a/docs/sphinx/rest_substitutions/snippets/python/converted/wx.Image.Scale.1.py +++ b/docs/sphinx/rest_substitutions/snippets/python/converted/wx.Image.Scale.1.py @@ -6,9 +6,9 @@ if bmp.GetWidth() != 32 or bmp.GetHeight() != 32: image = bmp.ConvertToImage() - bmp = wx.BitmapFromImage(image.Scale(32, 32)) + bmp = wx.Bitmap(image.Scale(32, 32)) # another possibility: image.Rescale(32, 32) - bmp = wx.BitmapFromImage(image) + bmp = wx.Bitmap(image)