# eric7.EricGui.EricFileIconProvider

Module implementing a file icon provider determining the icon based on file name.

### Global Attributes

None

### Classes

EricFileIconProvider | Class implementing a file icon provider determining the icon based on file name.

### Functions

None

## EricFileIconProvider

Class implementing a file icon provider determining the icon based on file name.

### Derived from

None

### Class Attributes

None

### Class Methods

None

### Methods

EricFileIconProvider | Constructor
fileIcon | Public method to get an icon for the given file name.
fileIconName | Public method to get an icon name for the given file name.

### Static Methods

None

#### EricFileIconProvider (Constructor)

EricFileIconProvider()

Constructor

#### EricFileIconProvider.fileIcon

fileIcon(name)

Public method to get an icon for the given file name.

name (str)
  file name

Return:
  icon

Return Type:
  QIcon

#### EricFileIconProvider.fileIconName

fileIconName(name)

Public method to get an icon name for the given file name.

name (str)
  file name

Return:
  icon name

Return Type:
  str

Up