mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
Update FCObjects.py
raises a ValueError instead of an AttributeError b/c self.Image is never set
This commit is contained in:
@@ -2135,6 +2135,8 @@ class ScaledBitmap(TextObjectMixin, DrawObject):
|
||||
self.Image = Bitmap.ConvertToImage()
|
||||
elif type(Bitmap) == wx.Image:
|
||||
self.Image = Bitmap
|
||||
else:
|
||||
raise ValueError("'Bitmap' must be a wx.Bitmap or wx.Image object not %s" % type(Bitmap))
|
||||
|
||||
self.XY = XY
|
||||
self.Height = Height
|
||||
|
||||
Reference in New Issue
Block a user