Instead of returning nothing, return the nullBitmap when no image is found
This commit is contained in:
@@ -38,3 +38,5 @@ def getBitmap(name,location):
|
||||
|
||||
if os.path.exists(path):
|
||||
return wx.Image(path).ConvertToBitmap()
|
||||
else:
|
||||
return wx.NullBitmap
|
||||
|
||||
Reference in New Issue
Block a user