Fix typo in CustomTreeCtrl and HyperTreeList demos

Context menu "Change Item Icons" would throw an exception due to typo.
This commit is contained in:
cbeytas
2018-11-21 14:46:06 -05:00
parent 7a8789347e
commit fb10da6aab
2 changed files with 4 additions and 4 deletions

View File

@@ -726,7 +726,7 @@ class TreeIcons(wx.Dialog):
bmp = images.Smiles.GetBitmap()
else:
bmp = wx.ArtProvider.GetBitmap(eval(ArtIDs[input]), wx.ART_OTHER, (16,16))
if not bmp.Ok():
if not bmp.IsOk():
bmp = wx.Bitmap(16,16)
self.ClearBmp(bmp)
@@ -746,7 +746,7 @@ class TreeIcons(wx.Dialog):
bmp = images.Smiles.GetBitmap()
else:
bmp = wx.ArtProvider.GetBitmap(eval(ArtIDs[input+1]), wx.ART_OTHER, (16,16))
if not bmp.Ok():
if not bmp.IsOk():
bmp = wx.Bitmap(16,16)
self.ClearBmp(bmp)

View File

@@ -825,7 +825,7 @@ class TreeIcons(wx.Dialog):
bmp = GetSmilesBitmap()
else:
bmp = wx.ArtProvider.GetBitmap(eval(ArtIDs[input]), wx.ART_OTHER, (16,16))
if not bmp.Ok():
if not bmp.IsOk():
bmp = wx.Bitmap(16,16)
self.ClearBmp(bmp)
@@ -845,7 +845,7 @@ class TreeIcons(wx.Dialog):
bmp = GetSmilesBitmap()
else:
bmp = wx.ArtProvider.GetBitmap(eval(ArtIDs[input+1]), wx.ART_OTHER, (16,16))
if not bmp.Ok():
if not bmp.IsOk():
bmp = wx.Bitmap(16,16)
self.ClearBmp(bmp)