fsleyes.icons

This module contains a couple of convenience functions for looking up FSLeyes icon images.

Icons can be looked up by their ID, which is simply the icon file base name. For exmaple, the bitmap for an icon called gear24.png can be retreived like so:

import fsleyes.icons as icons

# Get the file name
fname = icons.findImageFile('gear24')

# Get a wx.Bitmap containing the gear icon
gearBmp = icons.loadBitmap('gear24')
fsleyes.icons.BUM_MODE = False

If True, all icons are made to look like bums.

fsleyes.icons.getIconDir()[source]

Returns the directory which contains all of the icons used in FSLeyes.

fsleyes.icons.findImageFile(iconId)[source]

Returns the full path to the icon with the given iconId.

fsleyes.icons.loadBitmap(iconId)[source]

Loads and returns a wx.Bitmap containing the specified iconId.