Example #1
0
	def __init__(self, file_name):
		QtGui.QIcon.__init__(self, settings.icons_path().absoluteFilePath(file_name))
Example #2
0
	def get_pixmap(self, ico, wh):
		pixmap = QtGui.QPixmap( settings.icons_path().absoluteFilePath(ico) )
		return pixmap.scaled(wh, wh, QtCore.Qt.IgnoreAspectRatio)
Example #3
0
 def __init__(self, file_name):
     QtGui.QIcon.__init__(self,
                          settings.icons_path().absoluteFilePath(file_name))
Example #4
0
 def get_pixmap(self, ico, wh):
     pixmap = QtGui.QPixmap(settings.icons_path().absoluteFilePath(ico))
     return pixmap.scaled(wh, wh, QtCore.Qt.IgnoreAspectRatio)