# eric6.Toolbox.PyQt4ImportHook

Module implementing an import hook converting PyQt5 imports to PyQt4 imports.

### Global Attributes

None

### Classes

PyQt4Importer | Class implementing an importer converting PyQt5 imports to PyQt4 imports.

### Functions

None

## PyQt4Importer

Class implementing an importer converting PyQt5 imports to PyQt4 imports.

### Derived from

object

### Class Attributes

None

### Class Methods

None

### Methods

PyQt4Importer | Constructor
find_module | Public method returning the module loader.
load_module | Public method to load a module.

### Static Methods

None

#### PyQt4Importer (Constructor)

PyQt4Importer()

Constructor

#### PyQt4Importer.find_module

find_module(fullname, path=None)

Public method returning the module loader.

fullname
  name of the module to be loaded (string)
path
  path to resolve the module name (string)

Returns:
  module loader object

#### PyQt4Importer.load_module

load_module(fullname)

Public method to load a module.

fullname
  name of the module to be loaded (string)

Returns:
  reference to the loaded module (module)

Up