UI/PixmapCache.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1509
c0b5e693b0eb
--- a/UI/PixmapCache.py	Fri Mar 11 08:55:14 2011 +0100
+++ b/UI/PixmapCache.py	Fri Mar 11 16:51:57 2011 +0100
@@ -11,6 +11,7 @@
 
 from PyQt4.QtGui import QPixmap, QIcon, QPainter
 
+
 class PixmapCache(object):
     """
     Class implementing a pixmap cache for icons.
@@ -57,7 +58,8 @@
 
 pixCache = PixmapCache()
 
-def getPixmap(key, cache = pixCache):
+
+def getPixmap(key, cache=pixCache):
     """
     Module function to retrieve a pixmap.
 
@@ -66,7 +68,8 @@
     """
     return cache.getPixmap(key)
 
-def getIcon(key, cache = pixCache):
+
+def getIcon(key, cache=pixCache):
     """
     Module function to retrieve an icon.
 
@@ -75,7 +78,8 @@
     """
     return QIcon(cache.getPixmap(key))
 
-def getSymlinkIcon(key, cache = pixCache):
+
+def getSymlinkIcon(key, cache=pixCache):
     """
     Module function to retrieve a symbolic link icon.
 
@@ -89,7 +93,8 @@
     painter.end()
     return QIcon(pix1)
 
-def addSearchPath(path, cache = pixCache):
+
+def addSearchPath(path, cache=pixCache):
     """
     Module function to add a path to the search path.
 

eric ide

mercurial