diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2007-12-13 01:25:52 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2007-12-13 01:25:52 +0000 |
| commit | 5db2dc5c63948651b3e4b337d7057cd940ccc644 (patch) | |
| tree | cdb77048bb1954de6ea7e983302371b33e6f812f /lib/python/Tools/LoadPixmap.py | |
| parent | 7bcaff119363f42cd4263a5e07982de7671734a7 (diff) | |
| download | enigma2-5db2dc5c63948651b3e4b337d7057cd940ccc644.tar.gz enigma2-5db2dc5c63948651b3e4b337d7057cd940ccc644.zip | |
factor out loadPNG into generic LoadPixmap
Diffstat (limited to 'lib/python/Tools/LoadPixmap.py')
| -rw-r--r-- | lib/python/Tools/LoadPixmap.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/python/Tools/LoadPixmap.py b/lib/python/Tools/LoadPixmap.py new file mode 100644 index 00000000..033b8437 --- /dev/null +++ b/lib/python/Tools/LoadPixmap.py @@ -0,0 +1,7 @@ +from enigma import loadPNG + +def LoadPixmap(path, desktop = None): + ptr = loadPNG(path) + if ptr and desktop: + desktop.makeCompatiblePixmap(ptr) + return ptr |
