This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" I needed some unique icons for numerous pyside scripts. This helped. | |
""" | |
from PySide import QtCore, QtGui | |
import sys | |
import operator | |
def getIcon(inputStr='', saturation=.8, value=.9, size=128): | |
""" Creates a QIcon of a single letter on a solid color based on an input | |
string. The same string will always produce the same background color. |
NewerOlder