Potku  1.0.0
Class Documentation
 All Classes Namespaces Functions
Modules.IconManager.IconManager Class Reference

Public Member Functions

def __init__
 
def get_icon
 
def set_icon
 

Detailed Description

Icon manager class to handle all icons for the program.

Constructor & Destructor Documentation

def Modules.IconManager.IconManager.__init__ (   self)
Inits IconManager class.

Member Function Documentation

def Modules.IconManager.IconManager.get_icon (   self,
  icon_name 
)
Get specific icon.

Args:
    icon_name: String representing icon file name.
    
Return:
    Returns QtGui.QIcon of icon_name and empty icon if not found.
def Modules.IconManager.IconManager.set_icon (   self,
  target,
  icon_name,
  size = (20, 20 
)
Set icon (icon_name) to target.

Args:
    target: QtGui element that has icon. (setIcon method)
    icon_name: String representing filename of the icon.

The documentation for this class was generated from the following file: