Version: 8.3.0
gui.Icons Namespace Reference

Functions

def get_image
 
def update_cache
 

Variables

dictionary dico_images = {}
 

Function Documentation

def gui.Icons.get_image (   name)

Definition at line 31 of file Icons.py.

31 
32 def get_image(name):
33  if dico_images.has_key(name):
34  return dico_images[name]
35  else :
36  if dico_xpm.has_key(name):
37  image=QPixmap(dico_xpm[name])
38  else:
39  fic_image = os.path.join(os.path.dirname(__file__),"icons",name)
40  if not os.path.isfile(fic_image):
41  file, ext = os.path.splitext(fic_image)
42  fic_image = file + '.gif'
43  image = QPixmap(fic_image)
44  dico_images[name]=image
45  return image
def gui.Icons.update_cache ( )

Definition at line 46 of file Icons.py.

46 
47 def update_cache():
48  global dico_images
49  dico_images={}
50 

Variable Documentation

dictionary gui.Icons.dico_images = {}

Definition at line 29 of file Icons.py.