def get(self, iconname):
try:
image = 'img\\' + self.img_dict[iconname]
except KeyError:
print 'Image: "{}" not found!'.format(iconname)
image = 'img\\' + self.img_dict['toilet']
wximage = wx.Image(self.path + image, wx.BITMAP_TYPE_PNG).ConvertToBitmap()
return wximage
评论列表
文章目录