Make sure to not die when a bitmap doesn't exist

This commit is contained in:
cncfanatics
2010-08-17 16:41:02 +02:00
parent a767f7891f
commit a925d6b59c
3 changed files with 23 additions and 13 deletions

View File

@@ -38,8 +38,3 @@ def getBitmap(name,location):
if os.path.exists(path):
return wx.Image(path).ConvertToBitmap()
else:
null = wx.NullBitmap
null.SetWidth(32)
null.SetHeight(32)
return null