Home ⌂Doc Index ◂Up ▴

eric6.E5Gui.E5Application

Class implementing a specialized application class.

Global Attributes

e5App

Classes

E5Application Eric application class with an object registry.

Functions

None


E5Application

Eric application class with an object registry.

Derived from

QApplication

Class Attributes

None

Class Methods

None

Methods

E5Application Constructor
getObject Public method to get a reference to a registered object.
getPluginObject Public method to get a reference to a registered plugin object.
getPluginObjectType Public method to get the type of a registered plugin object.
getPluginObjects Public method to get a list of (name, reference) pairs of all registered plugin objects.
registerObject Public method to register an object in the object registry.
registerPluginObject Public method to register a plugin object in the object registry.
unregisterPluginObject Public method to unregister a plugin object in the object registry.
usesDarkPalette Public method to check, if the application uses a palette with a dark background.

Static Methods

None

E5Application (Constructor)

E5Application(argv)

Constructor

argv (list)
command line arguments

E5Application.getObject

getObject(name)

Public method to get a reference to a registered object.

name (str)
name of the object
Returns:
reference to the registered object
Return Type:
any
Raises KeyError:
raised when the given name is not known

E5Application.getPluginObject

getPluginObject(name)

Public method to get a reference to a registered plugin object.

name (str)
name of the plugin object
Returns:
reference to the registered plugin object
Return Type:
any
Raises KeyError:
raised when the given name is not known

E5Application.getPluginObjectType

getPluginObjectType(name)

Public method to get the type of a registered plugin object.

name (str)
name of the plugin object
Returns:
type of the plugin object
Return Type:
str
Raises KeyError:
raised when the given name is not known

E5Application.getPluginObjects

getPluginObjects()

Public method to get a list of (name, reference) pairs of all registered plugin objects.

Returns:
list of (name, reference) pairs
Return Type:
list of (str, any)

E5Application.registerObject

registerObject(name, objectRef)

Public method to register an object in the object registry.

name (str)
name of the object
objectRef (any)
reference to the object
Raises KeyError:
raised when the given name is already in use

E5Application.registerPluginObject

registerPluginObject(name, objectRef, pluginType=None)

Public method to register a plugin object in the object registry.

name (str)
name of the plugin object
objectRef (any)
reference to the plugin object
pluginType (str)
type of the plugin object
Raises KeyError:
raised when the given name is already in use

E5Application.unregisterPluginObject

unregisterPluginObject(name)

Public method to unregister a plugin object in the object registry.

name (str)
name of the plugin object

E5Application.usesDarkPalette

usesDarkPalette()

Public method to check, if the application uses a palette with a dark background.

Returns:
flag indicating the use of a palette with a dark background
Return Type:
bool
Up



Home ⌂Doc Index ◂Up ▴