src/eric7/UI/PixmapCache.py

Tue, 18 Oct 2022 16:06:21 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 18 Oct 2022 16:06:21 +0200
branch
eric7
changeset 9413
80c06d472826
parent 9221
bf71ee032bb4
child 9653
e67609152c5e
permissions
-rw-r--r--

Changed the eric7 import statements to include the package name (i.e. eric7) in order to not fiddle with sys.path.

# -*- coding: utf-8 -*-

# Copyright (c) 2022 Detlev Offenbach <detlev@die-offenbachs.de>
#

"""
Module implementing a compatibility interface of the EricPixmapCache functionality to
satisfy old plug-ins.
"""

from eric7.EricGui import EricPixmapCache

getPixmap = EricPixmapCache.getPixmap
getIcon = EricPixmapCache.getIcon
getSymlinkIcon = EricPixmapCache.getSymlinkIcon
getCombinedIcon = EricPixmapCache.getCombinedIcon
addSearchPath = EricPixmapCache.addSearchPath
removeSearchPath = EricPixmapCache.removeSearchPath

# TODO: remove this module with release 23.4

eric ide

mercurial