Use GetBitmap and range instead of getBitmap and xrange

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2014-02-07 03:04:47 +00:00
parent af11009f80
commit de004a78b5

View File

@@ -145,7 +145,7 @@ def GetCheckeredBitmap(blocksize=8, ntiles=4, rgb0='\xFF', rgb1='\xCC'):
return wx.Bitmap.FromBuffer(size, size, data)
def GetNamedBitmap(name):
return IMG_CATALOG[name].getBitmap()
return IMG_CATALOG[name].GetBitmap()
class ImageView(wx.Window):
@@ -687,9 +687,7 @@ class ImageDialog(wx.Dialog):
if len(self.fl_list):
self.tb.Set(self.fl_list)
if sys.version_info[0] == 3:
xrange = range
for idir in xrange(self.fl_ndirs):
for idir in range(self.fl_ndirs):
d = self.fl_list[idir]
# mark directories as 'True' with client data
self.tb.SetClientData(idir, True)