mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 11:00: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()
|
self.Image = Bitmap.ConvertToImage()
|
||||||
elif type(Bitmap) == wx.Image:
|
elif type(Bitmap) == wx.Image:
|
||||||
self.Image = Bitmap
|
self.Image = Bitmap
|
||||||
|
else:
|
||||||
|
raise ValueError("'Bitmap' must be a wx.Bitmap or wx.Image object not %s" % type(Bitmap))
|
||||||
|
|
||||||
self.XY = XY
|
self.XY = XY
|
||||||
self.Height = Height
|
self.Height = Height
|
||||||
|
|||||||
Reference in New Issue
Block a user