def get_filetype_icon(fname):
 ext = osp.splitext(fname)[1]
 if ext.startswith('.'):
  ext = ext[1:]
 return get_icon(('%s.png' % ext), ima.icon('FileIcon'))

def get_filetype_icon ( fname ) : ext = osp . splitext ( fname ) [ 1 ] if ext . startswith ( '.' ) : ext = ext [ 1 : ] return get_icon ( ( '%s.png' % ext ) , ima . icon ( 'FileIcon' ) )
return file type icon .