- # This code is commented, since there is an alignment problem with wx2.6.3 & Menus
- # if self.TabHasImage(ii):
- # item.SetBitmaps( (*m_ImageList)[pi.GetImageIndex()] );
+ # There is an alignment problem with wx2.6.3 & Menus so only use
+ # images for versions above 2.6.3
+ if wx.VERSION > (2, 6, 3, 0) and self.TabHasImage(i):
+ item.SetBitmap(self.GetImageList().GetBitmap(pi.GetImageIndex()))