def getIcons(filename=None):
 icons = {}
 if (filename is None):
  filename = join(dirname(abspath(__file__)), 'base.png')
 im = Image.open(filename)
 icons['24'] = pilToBitmap(im, scaleFactor=0.5)
 icons['24add'] = pilToBitmap(im, scaleFactor=0.5)
 filename128 = (filename[:(-4)] + '128.png')
 if False:
  im = Image.open(filename128)
 else:
  im = Image.open(filename)
 icons['48'] = pilToBitmap(im)
 add = Image.open(join(dirname(abspath(__file__)), 'add.png'))
 im.paste(add, [0, 0, add.size[0], add.size[1]], mask=add)
 icons['48add'] = pilToBitmap(im)
 return icons

def getIcons ( filename = None ) : icons = { } if ( filename is None ) : filename = join ( dirname ( abspath ( __file__ ) ) , 'base.png' ) im = Image . open ( filename ) icons [ '24' ] = pilToBitmap ( im , scaleFactor = 0.5 ) icons [ '24add' ] = pilToBitmap ( im , scaleFactor = 0.5 ) filename128 = ( filename [ : ( - 4 ) ] + '128.png' ) if False : im = Image . open ( filename128 ) else : im = Image . open ( filename ) icons [ '48' ] = pilToBitmap ( im ) add = Image . open ( join ( dirname ( abspath ( __file__ ) ) , 'add.png' ) ) im . paste ( add , [ 0 , 0 , add . size [ 0 ] , add . size [ 1 ] ] , mask = add ) icons [ '48add' ] = pilToBitmap ( im ) return icons
creates wxbitmaps self .