mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
Fix typo in CustomTreeCtrl and HyperTreeList demos
Context menu "Change Item Icons" would throw an exception due to typo.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user